diff --git a/frontend/.storybook/main.js b/frontend/.storybook/main.js index 0bff19970..af8b96394 100644 --- a/frontend/.storybook/main.js +++ b/frontend/.storybook/main.js @@ -1,5 +1,5 @@ module.exports = { - stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], + stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'], addons: [ '@storybook/addon-links', @@ -12,6 +12,8 @@ module.exports = { options: {} }, + staticDirs: ['../public'], + docs: { autodocs: true } diff --git a/frontend/.storybook/preview.js b/frontend/.storybook/preview.js index d0834a547..1181eaf2f 100644 --- a/frontend/.storybook/preview.js +++ b/frontend/.storybook/preview.js @@ -3,6 +3,7 @@ import themesConf from '../src/lib/themes'; import { StylesProvider } from '@mui/styles'; import '../src/i18n/config'; import ThemeProviderNexti18n from '../src/i18n/ThemeProviderNexti18n'; +import { StyledEngineProvider } from '@mui/material/styles'; const darkTheme = themesConf['dark']; const lightTheme = themesConf['light']; @@ -12,9 +13,11 @@ const withThemeProvider = (Story, context) => { const theme = backgroundColor !== 'dark' ? lightTheme : darkTheme; const ourThemeProvider = ( - - - + + + + + ); if (process.env.NODE_ENV !== 'test') { return ourThemeProvider; diff --git a/frontend/package.json b/frontend/package.json index 53d8be99f..138f89148 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -97,8 +97,8 @@ "lint:fix": "eslint -c package.json --fix 'src/**/*.{js,jsx,ts,tsx}'", "i18n": "npx --no-install i18next ./src/**/ts* ./src/**/**/*.ts* ./src/**/**/**/*.ts* -c ./src/i18n/i18next-parser.config.js", "tsc": "tsc", - "storybook": "storybook dev -p 6006 -s public", - "build-storybook": "storybook build -s public" + "storybook": "storybook dev -p 6006", + "build-storybook": "storybook build" }, "browserslist": { "production": [ diff --git a/frontend/src/components/Activity/ActivityContainer.tsx b/frontend/src/components/Activity/ActivityContainer.tsx index fa5acaf41..da185cc6e 100644 --- a/frontend/src/components/Activity/ActivityContainer.tsx +++ b/frontend/src/components/Activity/ActivityContainer.tsx @@ -17,10 +17,13 @@ const useStyles = makeStyles({ toolbar: { padding: 0, }, - caption: { + select: { fontSize: '.85em', }, - select: { + selectLabel: { + fontSize: '.85em', + }, + displayedRows: { fontSize: '.85em', }, }); @@ -102,6 +105,8 @@ function Container() { return entries; } + console.log(classes); + return ( <> diff --git a/frontend/src/components/Applications/ApplicationEdit.tsx b/frontend/src/components/Applications/ApplicationEdit.tsx index ad8bd4b6e..768886004 100644 --- a/frontend/src/components/Applications/ApplicationEdit.tsx +++ b/frontend/src/components/Applications/ApplicationEdit.tsx @@ -75,6 +75,7 @@ export default function ApplicationEdit(props: ApplicationEditProps) { ({ export default function ChannelAvatar(props: ChannelAvatarProps) { const classes = useStyles(props); - return {props.children || ''}; + return {props.children || ' '}; } diff --git a/frontend/src/components/Channels/ChannelEdit.tsx b/frontend/src/components/Channels/ChannelEdit.tsx index 057c95846..1c0083839 100644 --- a/frontend/src/components/Channels/ChannelEdit.tsx +++ b/frontend/src/components/Channels/ChannelEdit.tsx @@ -186,6 +186,7 @@ export default function ChannelEdit(props: ChannelEditProps) { - - Architecture + + Architecture - - {t('groups|Channel')} + + + {t('groups|Channel')} + { @@ -56,6 +60,7 @@ export default function GroupDetailsForm(props: GroupDetailsFormProps) { - - + + {t('instances|Filter Status')} } renderValue={(selected: any) => @@ -107,12 +106,11 @@ function InstanceFilter(props: InstanceFilterProps) { - - + + {t('instances|Filter Version')} { setShowPicker(true); diff --git a/frontend/src/components/common/TimezonePicker/TimezonePicker.tsx b/frontend/src/components/common/TimezonePicker/TimezonePicker.tsx index ee1a8eccb..2505b5612 100644 --- a/frontend/src/components/common/TimezonePicker/TimezonePicker.tsx +++ b/frontend/src/components/common/TimezonePicker/TimezonePicker.tsx @@ -27,6 +27,7 @@ interface RenderInputProps { classes: { inputRoot: string; inputInput: string; + textFieldRoot: string; }; ref?: React.Ref; InputProps: { @@ -48,6 +49,9 @@ function renderInput(inputProps: RenderInputProps) { return ( - - Timezone + + + Timezone + + {props.showTitle && {t('Select locale')}}