diff --git a/frontend/src/packages/dashboard/components/FileRenderer/FileContainer.tsx b/frontend/src/packages/dashboard/components/FileRenderer/FileContainer.tsx index 38fe094eb..f56c7e4e7 100644 --- a/frontend/src/packages/dashboard/components/FileRenderer/FileContainer.tsx +++ b/frontend/src/packages/dashboard/components/FileRenderer/FileContainer.tsx @@ -48,12 +48,13 @@ function FileContainer({ name, id, selectedFile, setSelectedFile }: Props) { console.log(id); setSelectedFile(id); if (selectedFile !== null) { - navigate("/editor/" + selectedFile, { + navigate("/editor/" + selectedFile, { replace: false, state: { - filename: name - } - }), [navigate]; + filename: name, + }, + }), + [navigate]; } }; diff --git a/next/src/pages/blog/[bid].tsx b/next/src/pages/blog/[bid].tsx index 812be6888..0a271c2bc 100644 --- a/next/src/pages/blog/[bid].tsx +++ b/next/src/pages/blog/[bid].tsx @@ -10,47 +10,71 @@ import { BlogHeading } from "../../components/blog/Blog-styled"; import Footer from "../../components/footer/Footer"; const PageContainer = styled.div` - display: flex; - min-height: 100vh; - flex-direction: column; + display: flex; + min-height: 100vh; + flex-direction: column; `; const MainContainer = styled.div` - display: flex; - flex-direction: column; - align-items: center; - min-height: 80vh; + display: flex; + flex-direction: column; + align-items: center; + min-height: 80vh; `; -const BlogPage: NextPage<{ data: Block[] }> = ({ data }) => { - return ( - - {}} - />{" "} - {/** ignore the styling */} - - Blog Title - - -