From 688b9126c22e74dcac9428e9c58b24c73a1e812f Mon Sep 17 00:00:00 2001 From: Luiz Henrique Guerra Date: Mon, 9 Dec 2024 11:58:21 -0300 Subject: [PATCH] fix: handle manager dashboard when no projects are found --- app/spa/src/components/BasicPage.tsx | 72 ++++++++--------- app/spa/src/components/Footer.tsx | 19 +++++ app/spa/src/pages/Users/ManagerDashboard.tsx | 82 ++++++++++---------- 3 files changed, 93 insertions(+), 80 deletions(-) create mode 100644 app/spa/src/components/Footer.tsx diff --git a/app/spa/src/components/BasicPage.tsx b/app/spa/src/components/BasicPage.tsx index 507daf1ab..ec9cf4f25 100644 --- a/app/spa/src/components/BasicPage.tsx +++ b/app/spa/src/components/BasicPage.tsx @@ -1,16 +1,17 @@ import { ReactNode, useContext } from "react" import { - Container, - Typography, - Box, - Link, Backdrop, + Box, CircularProgress, + Container, + Stack, + Typography, } from "@mui/material" import Header from "./Header" import MessagesBox from "./MessagesBox" import Breadcrumbs, { BreadcrumbsLink } from "./Breadcrumbs" import { MessagesContext } from "../contexts/MessageContext" +import Footer from "./Footer" export type BasicPageProps = { breadcrumbsLinks?: BreadcrumbsLink[] @@ -28,45 +29,38 @@ const BasicPage = ({ }: BasicPageProps) => { const { messages } = useContext(MessagesContext) - if (loading) - return ( - - - - ) - return ( <> -
- - {breadcrumbsLinks && } - + + + )} + +
+ - - {title} - - {actions && actions} - - {children} - - - - - - Taller Logo - + {breadcrumbsLinks && } + + + {title} + + {actions && actions} + + {children} + - +