diff --git a/src/App.tsx b/src/App.tsx index 1f8b33b..9a9d747 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,6 +22,7 @@ import { PhotoShow } from "./components/photos/PhotoShow.tsx"; import { TodoList } from "./components/todos/TodoList.tsx"; import { TodoEdit } from "./components/todos/TodoEdit.tsx"; import { TodoShow } from "./components/todos/TodoShow.tsx"; +import {HomePage} from "./components/HomePage.tsx"; export const App = () => ( ( dataProvider={dataProvider} authProvider={authProvider} requireAuth + dashboard={HomePage} > u.username === username && u.password === password, ); - + if (user) { const { password, ...userToPersist } = user; localStorage.setItem("user", JSON.stringify(userToPersist)); diff --git a/src/components/HomePage.tsx b/src/components/HomePage.tsx new file mode 100644 index 0000000..5b1cc52 --- /dev/null +++ b/src/components/HomePage.tsx @@ -0,0 +1,26 @@ +import { Card, CardContent, Typography, Box } from "@mui/material"; + +export const HomePage = () => { + return ( + + + + + Welcome to the Dashboard + + + Manage your table effortlessly with the tools provided. Navigate + through the menu to get started. + + + + + ); +};