Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix heading

Nevo Davide18a24fcaad1
diff --git a/apps/frontend/src/components/new-launch/heading.component.tsx b/apps/frontend/src/components/new-launch/heading.component.tsx
index d42048398..6e6353aad 100644
--- a/apps/frontend/src/components/new-launch/heading.component.tsx
+++ b/apps/frontend/src/components/new-launch/heading.component.tsx
@@ -6,9 +6,9 @@ export const HeadingComponent: FC<{
editor: any;
currentValue: string;
}> = ({ editor }) => {
- const setHeading = useCallback((level: number) => () => {
+ const setHeading = (level: string) => () => {
editor.commands.toggleHeading({ level })
- }, []);
+ };
return (
<div className="select-none cursor-pointer w-[40px] p-[5px] text-center relative group">