add problems

This commit is contained in:
Виталий Лавшонок
2025-10-28 23:15:29 +03:00
parent edd4426780
commit 71985fa04f
9 changed files with 625 additions and 13 deletions

View File

@@ -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>