File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
src/components/frontend/page/style Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import { Markdown } from "@/components/shared/markdown" ;
4
4
import { Textarea } from "@/components/ui/textarea" ;
5
- import { usePathname } from "@/lib/i18n" ;
6
5
import { cn } from "@/lib/utils" ;
7
6
import { styleFonts , StyleKey } from "@/slugs" ;
8
7
import { fontKeys } from "@/transforms" ;
9
- import { useSearchParams } from "next/navigation" ;
10
8
import { useState } from "react" ;
11
9
import { Fonts } from "./fonts" ;
12
10
import { Sidebar } from "./sidebar" ;
13
11
14
12
export function StyleMain ( {
15
13
markdownContents,
16
14
style = "all" ,
17
- text = "Hello my old friend" ,
15
+ text,
18
16
} : Readonly < {
19
17
markdownContents : Record < string , string | undefined > ;
20
18
style : StyleKey ;
21
19
text ?: string | null ;
22
20
} > ) {
23
21
const { block1, block2 } = markdownContents ;
24
- const [ content , setContent ] = useState < string > ( text ? text : "" ) ;
25
- const pathname = usePathname ( ) ;
26
- const search = useSearchParams ( ) . toString ( ) ;
27
-
28
- console . log ( "text" , text )
29
- console . log ( "search" , search )
30
-
22
+ const [ content , setContent ] = useState < string > ( text ? text : "Hello my old friend" ) ;
23
+
31
24
const onChange = ( e : React . ChangeEvent < HTMLTextAreaElement > ) => {
32
25
setContent ( e . target . value ) ;
33
26
}
You can’t perform that action at this time.
0 commit comments