From 429d88834a20742ff2682c81f374ad3fcdb4f3e4 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sun, 8 Sep 2024 19:02:52 -0700 Subject: [PATCH] chore: replace mui system props with sx --- src/components/BuildPage.jsx | 2 +- src/components/GearOptimizer.jsx | 6 ++-- .../CircularProgressWithLabel.jsx | 20 +++++++------ src/components/baseComponents/Layout.jsx | 2 +- src/components/baseComponents/Section.jsx | 2 +- src/components/nav/NavAccordion.jsx | 2 +- src/components/nav/NavBar.jsx | 10 +++---- src/components/sections/affixes/Affixes.jsx | 8 ++--- src/components/sections/boss/Boss.jsx | 30 +++++++++++-------- src/components/sections/buffs/Buffs.jsx | 6 ++-- src/components/sections/controls/Controls.jsx | 8 ++--- .../distribution/DamageDistribution.jsx | 15 ++++++---- .../sections/extras/ExtraSelection.jsx | 10 +++---- .../sections/extras/ModalContent.jsx | 4 +-- .../sections/forcedslots/ForcedSlots.jsx | 7 ++++- .../sections/infusions/InfusionHelper.jsx | 4 +-- .../sections/infusions/Infusions.jsx | 10 +++++-- .../sections/priorities/Priorities.jsx | 2 +- .../BuildShareModal/BuildShareModal.jsx | 6 ++-- .../results/BuildShareModal/ModalContent.jsx | 8 ++--- .../sections/results/table/ResultTable.jsx | 4 +-- src/components/sections/skills/Skills.jsx | 4 +-- src/components/sections/traits/Traits.jsx | 8 ++--- src/pages/build/index.jsx | 4 +-- src/pages/index/index.jsx | 9 ++++-- 25 files changed, 107 insertions(+), 84 deletions(-) diff --git a/src/components/BuildPage.jsx b/src/components/BuildPage.jsx index d9fb32812..75e4eebb8 100644 --- a/src/components/BuildPage.jsx +++ b/src/components/BuildPage.jsx @@ -74,7 +74,7 @@ const BuildPage = () => { // eslint-disable-next-line react/no-unstable-nested-components function Traits({ id, selected: selectedTraits }) { return ( - + {traitLookup[id]} diff --git a/src/components/GearOptimizer.jsx b/src/components/GearOptimizer.jsx index 3e7d7c945..dd5be0931 100644 --- a/src/components/GearOptimizer.jsx +++ b/src/components/GearOptimizer.jsx @@ -41,7 +41,7 @@ const GearOptimizer = () => { {profession === '' && ( - + {expertMode ? classOrBuildText : classText} @@ -95,9 +95,9 @@ const GearOptimizer = () => { - + - + diff --git a/src/components/baseComponents/CircularProgressWithLabel.jsx b/src/components/baseComponents/CircularProgressWithLabel.jsx index 58c06b16f..0e9b2c3ca 100644 --- a/src/components/baseComponents/CircularProgressWithLabel.jsx +++ b/src/components/baseComponents/CircularProgressWithLabel.jsx @@ -5,17 +5,19 @@ import Typography from '@mui/material/Typography'; function CircularProgressWithLabel(props) { const { value } = props; return ( - + {`${Math.round(value)}%`} diff --git a/src/components/baseComponents/Layout.jsx b/src/components/baseComponents/Layout.jsx index 1c5cf5e42..87e340354 100644 --- a/src/components/baseComponents/Layout.jsx +++ b/src/components/baseComponents/Layout.jsx @@ -2,7 +2,7 @@ import { Box, Container } from '@mui/material'; const Layout = ({ children, ContainerProps, disableContainer = false }) => disableContainer ? ( - {children} + {children} ) : ( { // first disables the delimiting line above! const Section = ({ first, title, helpText, extraInfo, content }) => { return ( - + {!first && ( diff --git a/src/components/nav/NavAccordion.jsx b/src/components/nav/NavAccordion.jsx index 027294652..19b0e736f 100644 --- a/src/components/nav/NavAccordion.jsx +++ b/src/components/nav/NavAccordion.jsx @@ -67,7 +67,7 @@ export default function NavAccordion({ handleTemplateSelect }) { {prof.builds.map((build) => ( - + } diff --git a/src/components/nav/NavBar.jsx b/src/components/nav/NavBar.jsx index 258f31bae..f3b5d4621 100644 --- a/src/components/nav/NavBar.jsx +++ b/src/components/nav/NavBar.jsx @@ -111,8 +111,8 @@ const Navbar = () => { const stickyRight = () => { return ( - - + + {selectedGameModeText} @@ -151,7 +151,7 @@ const Navbar = () => { return ( - + { ]; const displayDesktop = () => ( - + {PROFESSIONS.map((prof, index) => ( - + {status === STOPPED ? (