Skip to content

Commit 17aea33

Browse files
committed
update
1 parent 3f5fc82 commit 17aea33

File tree

1 file changed

+3
-10
lines changed
  • src/components/frontend/page/style

1 file changed

+3
-10
lines changed

src/components/frontend/page/style/main.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,25 @@
22

33
import { Markdown } from "@/components/shared/markdown";
44
import { Textarea } from "@/components/ui/textarea";
5-
import { usePathname } from "@/lib/i18n";
65
import { cn } from "@/lib/utils";
76
import { styleFonts, StyleKey } from "@/slugs";
87
import { fontKeys } from "@/transforms";
9-
import { useSearchParams } from "next/navigation";
108
import { useState } from "react";
119
import { Fonts } from "./fonts";
1210
import { Sidebar } from "./sidebar";
1311

1412
export function StyleMain({
1513
markdownContents,
1614
style = "all",
17-
text = "Hello my old friend",
15+
text,
1816
}: Readonly<{
1917
markdownContents: Record<string, string | undefined>;
2018
style: StyleKey;
2119
text?: string | null;
2220
}>) {
2321
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+
3124
const onChange=(e: React.ChangeEvent<HTMLTextAreaElement>)=>{
3225
setContent(e.target.value);
3326
}

0 commit comments

Comments
 (0)