From d54115c9960205b13e5019175dca2417a4694d0d Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Wed, 20 Jul 2022 14:50:23 +1000 Subject: [PATCH] sync changes with rowy.app --- src/components/AccessDenied.tsx | 1 + src/components/ErrorFallback.tsx | 48 ++++++++++++------- .../NavDrawer/NavDrawerContents.tsx | 6 +-- .../Navigation/NavDrawer/NavTableSection.tsx | 2 +- src/pages/NotFoundPage.tsx | 7 ++- src/theme/components.tsx | 6 +++ 6 files changed, 45 insertions(+), 25 deletions(-) diff --git a/src/components/AccessDenied.tsx b/src/components/AccessDenied.tsx index fbc0b81f..792e9af3 100644 --- a/src/components/AccessDenied.tsx +++ b/src/components/AccessDenied.tsx @@ -31,6 +31,7 @@ export default function AccessDenied({ resetErrorBoundary }: FallbackProps) { return ( { - if (errorPathname !== location.pathname) resetErrorBoundary(); - }, [errorPathname, location.pathname, resetErrorBoundary]); - if ((error as any).code === "permission-denied") return ( @@ -38,13 +31,17 @@ export default function ErrorFallback({ message: "Something went wrong", description: ( <> - + {(error as any).code && {(error as any).code}: } {error.message} - + } style={{ marginTop: -TOP_BAR_HEIGHT }} diff --git a/src/theme/components.tsx b/src/theme/components.tsx index 342a92ea..6cf7c4ca 100644 --- a/src/theme/components.tsx +++ b/src/theme/components.tsx @@ -1339,6 +1339,12 @@ export const components = (theme: Theme): ThemeOptions => { }, }, + MuiSkeleton: { + styleOverrides: { + rectangular: { borderRadius: theme.shape.borderRadius }, + }, + }, + MuiRating: { styleOverrides: { iconFilled: { color: theme.palette.text.secondary },