diff --git a/client/src/App.tsx b/client/src/App.tsx
index 5a507c2..8bab753 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -11,6 +11,7 @@ import { Login } from "./Login";
import { Signup } from "./Signup";
import { Home } from "./Home";
import {
+ homeAction,
loginAction,
profileSelfAction,
signupAction,
@@ -42,9 +43,8 @@ const router = createBrowserRouter([
},
{
path: "/home",
- loader: async () => {
- return await homeLoader();
- },
+ loader: homeLoader,
+ action: homeAction,
element: ,
children: [
{ path: "feed", element: , loader: feedLoader },
diff --git a/client/src/Home.scss b/client/src/Home.scss
index 1a3d23f..db2229c 100644
--- a/client/src/Home.scss
+++ b/client/src/Home.scss
@@ -14,6 +14,16 @@
#SidebarUserInfo {
display: flex;
flex-direction: column;
+
+ button {
+ background: none;
+ border: none;
+ padding: 0;
+ text-decoration: none;
+ cursor: pointer;
+ color: inherit;
+ font-size: inherit;
+ }
}
* {
diff --git a/client/src/Home.tsx b/client/src/Home.tsx
index b0a083e..10b4af8 100644
--- a/client/src/Home.tsx
+++ b/client/src/Home.tsx
@@ -1,4 +1,10 @@
-import { NavLink, NavLinkProps, Outlet, useLoaderData } from "react-router-dom";
+import {
+ Form,
+ NavLink,
+ NavLinkProps,
+ Outlet,
+ useLoaderData,
+} from "react-router-dom";
import { homeLoader, LoaderToType } from "./loaders";
import { isError } from "./api/dto";
@@ -26,6 +32,16 @@ export function Home() {