add problems
This commit is contained in:
@@ -6,6 +6,7 @@ import Menu from "../views/home/menu/Menu";
|
||||
import { useAppDispatch, useAppSelector } from "../redux/hooks";
|
||||
import { useEffect } from "react";
|
||||
import { fetchWhoAmI } from "../redux/slices/auth";
|
||||
import Problems from "../views/home/problems/Problems";
|
||||
|
||||
const Home = () => {
|
||||
const name = useAppSelector((state) => state.auth.username);
|
||||
@@ -18,15 +19,16 @@ const Home = () => {
|
||||
|
||||
|
||||
return (
|
||||
<div className="h-full w-full bg-liquid-background grid grid-cols-[250px,1fr] divide-x-[1px] divide-liquid-lighter">
|
||||
<div className="">
|
||||
<div className="h-screen w-full bg-liquid-background grid grid-cols-[250px,1fr] divide-x-[1px] divide-liquid-lighter">
|
||||
<div className="h-screen">
|
||||
<Menu />
|
||||
</div>
|
||||
<div className="">
|
||||
<div className="h-screen">
|
||||
<Routes>
|
||||
<Route path="login" element={<Login />} />
|
||||
<Route path="account" element={<Login />} />
|
||||
<Route path="register" element={<Register />} />
|
||||
<Route path="problems/*" element={<Problems/>} />
|
||||
<Route path="*" element={name} />
|
||||
</Routes>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user