diff --git a/packages/manager/src/components/ColorPalette/ColorPalette.stories.mdx b/packages/manager/src/components/ColorPalette/ColorPalette.stories.mdx index 38ce365112d..cc12164b12b 100644 --- a/packages/manager/src/components/ColorPalette/ColorPalette.stories.mdx +++ b/packages/manager/src/components/ColorPalette/ColorPalette.stories.mdx @@ -1,5 +1,5 @@ import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs'; -import ColorPalette from './ColorPalette'; +import { ColorPalette } from './ColorPalette'; diff --git a/packages/manager/src/components/ColorPalette/ColorPalette.tsx b/packages/manager/src/components/ColorPalette/ColorPalette.tsx index 9b0d638a058..2f71df92248 100644 --- a/packages/manager/src/components/ColorPalette/ColorPalette.tsx +++ b/packages/manager/src/components/ColorPalette/ColorPalette.tsx @@ -1,7 +1,7 @@ // eslint-disable-next-line no-restricted-imports import { useTheme } from '@mui/material'; import * as React from 'react'; -import { makeStyles } from '@mui/styles'; +import { makeStyles } from 'tss-react/mui'; import { Theme } from '@mui/material/styles'; import Typography from 'src/components/core/Typography'; import Grid from '@mui/material/Unstable_Grid2'; @@ -11,7 +11,7 @@ interface Color { alias: string; } -const useStyles = makeStyles((theme: Theme) => ({ +const useStyles = makeStyles()((theme: Theme) => ({ root: { '& h2': { color: '#32363c', @@ -41,8 +41,8 @@ const useStyles = makeStyles((theme: Theme) => ({ }, })); -export const ColorPalette: React.FC<{}> = () => { - const classes = useStyles(); +export const ColorPalette = () => { + const { classes } = useStyles(); const theme = useTheme(); const primaryColors = [ @@ -197,5 +197,3 @@ export const ColorPalette: React.FC<{}> = () => { ); }; - -export default ColorPalette;