From e218a101776758705074d192a8050ae8540619a8 Mon Sep 17 00:00:00 2001 From: "eric.crowell" Date: Tue, 18 Jun 2024 22:08:03 +0200 Subject: [PATCH] fix: added client directive to typewriter components --- packages/ui/src/components/Typewriter/Typewriter.tsx | 2 ++ packages/ui/src/components/TypewriterInput/TypewriterInput.tsx | 2 ++ packages/ui/src/hooks/useTypewriter.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/packages/ui/src/components/Typewriter/Typewriter.tsx b/packages/ui/src/components/Typewriter/Typewriter.tsx index 7d1001e..cb96e75 100644 --- a/packages/ui/src/components/Typewriter/Typewriter.tsx +++ b/packages/ui/src/components/Typewriter/Typewriter.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useTypewriter } from '@do-ob/ui/hooks'; export interface TypewriterProps extends React.HTMLAttributes { diff --git a/packages/ui/src/components/TypewriterInput/TypewriterInput.tsx b/packages/ui/src/components/TypewriterInput/TypewriterInput.tsx index 279965b..3a6fce1 100644 --- a/packages/ui/src/components/TypewriterInput/TypewriterInput.tsx +++ b/packages/ui/src/components/TypewriterInput/TypewriterInput.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useTypewriter } from '@do-ob/ui/hooks'; import { Input, InputProps } from '@nextui-org/react'; diff --git a/packages/ui/src/hooks/useTypewriter.ts b/packages/ui/src/hooks/useTypewriter.ts index 8902069..a0707da 100644 --- a/packages/ui/src/hooks/useTypewriter.ts +++ b/packages/ui/src/hooks/useTypewriter.ts @@ -1,3 +1,5 @@ +'use client'; + import React from 'react'; type State = {