From 14a4e6d7e5f1e92e15dd97e0fdd05eefeb8ca3d5 Mon Sep 17 00:00:00 2001 From: warmachine028 <75939390+warmachine028@users.noreply.github.com> Date: Sat, 26 Oct 2024 03:05:33 +0530 Subject: [PATCH] feat: responsiveness --- client/src/App.tsx | 5 ++--- client/src/components/CreatePost.tsx | 3 ++- client/src/components/Navbar.tsx | 4 ++-- client/src/components/index.ts | 1 + client/src/pages/Posts.tsx | 6 +++--- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 08cc20f..149817b 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,15 +1,15 @@ import { BrowserRouter } from 'react-router-dom' -import { AppRouter } from '@/components' +import { AppRouter, Navbar } from '@/components' import { ThemeProvider } from '@/providers' import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { ReactQueryDevtools } from '@tanstack/react-query-devtools' -import Navbar from './components/Navbar' const ReactQueryDemoApp = () => { return ( + ) } @@ -21,7 +21,6 @@ const App = () => { - ) } diff --git a/client/src/components/CreatePost.tsx b/client/src/components/CreatePost.tsx index b6c23f3..06729ff 100644 --- a/client/src/components/CreatePost.tsx +++ b/client/src/components/CreatePost.tsx @@ -58,6 +58,7 @@ const CreatePost = () => { }) handleReset() } + const handleReset = () => { setPost(initialData) if (fileInputRef.current) { @@ -66,7 +67,7 @@ const CreatePost = () => { } return ( - + Create New Post {error} diff --git a/client/src/components/Navbar.tsx b/client/src/components/Navbar.tsx index 85efe5f..fc01551 100644 --- a/client/src/components/Navbar.tsx +++ b/client/src/components/Navbar.tsx @@ -61,7 +61,7 @@ const Navbar = () => { return (