From 66587042f3e7fd93dc0d3a6bec28b8e677812fc7 Mon Sep 17 00:00:00 2001 From: zanivan Date: Wed, 29 May 2024 14:16:34 -0300 Subject: [PATCH] Danilo's feedback --- .../templates/dashboard/components/ChartUserByCountry.js | 2 +- .../templates/dashboard/components/ChartUserByCountry.tsx | 2 +- .../templates/dashboard/components/CustomizedTreeView.js | 2 +- .../templates/dashboard/components/CustomizedTreeView.tsx | 2 +- .../templates/dashboard/components/MenuButton.js | 5 ++--- .../templates/dashboard/components/MenuButton.tsx | 4 +--- .../templates/dashboard/components/Navbar.js | 2 +- .../templates/dashboard/components/Navbar.tsx | 2 +- .../templates/dashboard/components/OptionsMenu.js | 2 +- .../templates/dashboard/components/OptionsMenu.tsx | 2 +- .../templates/dashboard/components/PageViewsBarChart.js | 2 +- .../templates/dashboard/components/PageViewsBarChart.tsx | 2 +- .../templates/dashboard/components/PageViewsChart.js | 2 +- .../templates/dashboard/components/PageViewsChart.tsx | 2 +- .../templates/dashboard/components/ToggleColorMode.js | 6 +----- .../templates/dashboard/components/ToggleColorMode.tsx | 6 +----- 16 files changed, 17 insertions(+), 28 deletions(-) diff --git a/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.js b/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.js index 5f26494310a1b8..74faf1e5f5059b 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.js +++ b/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.js @@ -100,7 +100,7 @@ export default function ChartUserByCountry() { return ( - + Users by country diff --git a/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.tsx b/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.tsx index 772e8eb53c0d84..c4e26d798478e2 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.tsx +++ b/docs/data/material/getting-started/templates/dashboard/components/ChartUserByCountry.tsx @@ -103,7 +103,7 @@ export default function ChartUserByCountry() { return ( - + Users by country diff --git a/docs/data/material/getting-started/templates/dashboard/components/CustomizedTreeView.js b/docs/data/material/getting-started/templates/dashboard/components/CustomizedTreeView.js index 3e0ae69ba1f242..6b6bf4b7c60e23 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/CustomizedTreeView.js +++ b/docs/data/material/getting-started/templates/dashboard/components/CustomizedTreeView.js @@ -206,7 +206,7 @@ export default function CustomizedTreeView() { sx={{ display: 'flex', flexDirection: 'column', gap: '8px' }} > - + Product tree - + Product tree - + ); } MenuButton.propTypes = { - ariaLabel: PropTypes.string, showBadge: PropTypes.bool, }; diff --git a/docs/data/material/getting-started/templates/dashboard/components/MenuButton.tsx b/docs/data/material/getting-started/templates/dashboard/components/MenuButton.tsx index 7dc9eb70bfb6c5..35453496a9181a 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/MenuButton.tsx +++ b/docs/data/material/getting-started/templates/dashboard/components/MenuButton.tsx @@ -4,12 +4,10 @@ import IconButton, { IconButtonProps } from '@mui/material/IconButton'; interface StyledMenuButtonProps extends IconButtonProps { showBadge?: boolean; - ariaLabel?: string; } export default function MenuButton({ showBadge = false, - ariaLabel, ...props }: StyledMenuButtonProps) { return ( @@ -21,7 +19,7 @@ export default function MenuButton({ '& .MuiBadge-badge': { right: 2, top: 2 }, }} > - + ); } diff --git a/docs/data/material/getting-started/templates/dashboard/components/Navbar.js b/docs/data/material/getting-started/templates/dashboard/components/Navbar.js index 873b4bb35bc8d1..00beeeb128875f 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/Navbar.js +++ b/docs/data/material/getting-started/templates/dashboard/components/Navbar.js @@ -100,7 +100,7 @@ function Navbar({ mode, toggleColorMode }) { > - + diff --git a/docs/data/material/getting-started/templates/dashboard/components/Navbar.tsx b/docs/data/material/getting-started/templates/dashboard/components/Navbar.tsx index d5c7d2e55223c7..30daae98fb04e3 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/Navbar.tsx +++ b/docs/data/material/getting-started/templates/dashboard/components/Navbar.tsx @@ -102,7 +102,7 @@ export default function Navbar({ mode, toggleColorMode }: NavBarProps) { > - + diff --git a/docs/data/material/getting-started/templates/dashboard/components/OptionsMenu.js b/docs/data/material/getting-started/templates/dashboard/components/OptionsMenu.js index 4546f9e041cef1..292b4dcdc0f6fa 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/OptionsMenu.js +++ b/docs/data/material/getting-started/templates/dashboard/components/OptionsMenu.js @@ -18,7 +18,7 @@ export default function OptionsMenu() { }; return ( - + - + - + Page views and downloads - + Page views and downloads - + Sessions - + Sessions + {mode === 'dark' ? ( ) : ( diff --git a/docs/data/material/getting-started/templates/dashboard/components/ToggleColorMode.tsx b/docs/data/material/getting-started/templates/dashboard/components/ToggleColorMode.tsx index 20e58ac1ce25a0..bc14e7dd3ec3a7 100644 --- a/docs/data/material/getting-started/templates/dashboard/components/ToggleColorMode.tsx +++ b/docs/data/material/getting-started/templates/dashboard/components/ToggleColorMode.tsx @@ -14,11 +14,7 @@ export default function ToggleColorMode({ toggleColorMode, }: ToggleColorModeProps) { return ( - + {mode === 'dark' ? ( ) : (