From 79f3a8cccbe9f09f13de8e35fec2511770f1f2cc Mon Sep 17 00:00:00 2001 From: Maruf Bepary Date: Sat, 18 Feb 2023 16:56:20 +0000 Subject: [PATCH] Replaced router with communityData - When clicking on create post from about component --- src/components/Community/About.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Community/About.tsx b/src/components/Community/About.tsx index 84307c1..31d08c7 100644 --- a/src/components/Community/About.tsx +++ b/src/components/Community/About.tsx @@ -26,7 +26,6 @@ type AboutProps = { }; const About: React.FC = ({ communityData }) => { - const router = useRouter(); const [user] = useAuthState(auth); const selectFileRef = useRef(null); const { selectedFile, setSelectedFile, onSelectFile } = useSelectFile(); @@ -95,7 +94,7 @@ const About: React.FC = ({ communityData }) => { {/* create post button */} - +