refactor(striker-ui): remove extra root CSS class on Anvils/SelectedAnvil

main
Tsu-ba-me 3 years ago
parent 96f1d0db59
commit 24b0708284
  1. 11
      striker-ui/components/Anvils/SelectedAnvil.tsx

@ -11,16 +11,13 @@ import putFetch from '../../lib/fetchers/putFetch';
const PREFIX = 'SelectedAnvil'; const PREFIX = 'SelectedAnvil';
const classes = { const classes = {
root: `${PREFIX}-root`,
anvilName: `${PREFIX}-anvilName`, anvilName: `${PREFIX}-anvilName`,
}; };
const StyledBox = styled(Box)(() => ({ const StyledBox = styled(Box)(() => ({
[`&.${classes.root}`]: { display: 'flex',
display: 'flex', flexDirection: 'row',
flexDirection: 'row', width: '100%',
width: '100%',
},
[`& .${classes.anvilName}`]: { [`& .${classes.anvilName}`]: {
paddingLeft: 0, paddingLeft: 0,
@ -55,7 +52,7 @@ const SelectedAnvil = ({ list }: { list: AnvilListItem[] }): JSX.Element => {
); );
return ( return (
<StyledBox className={classes.root}> <StyledBox>
{uuid !== '' && ( {uuid !== '' && (
<> <>
<Box p={1}> <Box p={1}>

Loading…
Cancel
Save