Fix direct reference to mui theme
This commit is contained in:
@@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
|
||||
|
||||
import Page from 'components/Page';
|
||||
import globalize from 'scripts/globalize';
|
||||
import theme from 'themes/theme';
|
||||
import { DisplayPreferences } from './DisplayPreferences';
|
||||
import { ItemDetailPreferences } from './ItemDetailPreferences';
|
||||
import { LibraryPreferences } from './LibraryPreferences';
|
||||
@@ -80,11 +79,7 @@ export default function UserDisplayPreferences() {
|
||||
|
||||
<Button
|
||||
type='submit'
|
||||
sx={{
|
||||
color: theme.palette.text.primary,
|
||||
fontSize: theme.typography.htmlFontSize,
|
||||
fontWeight: theme.typography.fontWeightBold
|
||||
}}
|
||||
size='large'
|
||||
>
|
||||
{globalize.translate('Save')}
|
||||
</Button>
|
||||
|
||||
+12
-1
@@ -55,7 +55,18 @@ const theme = createTheme({
|
||||
MuiButton: {
|
||||
defaultProps: {
|
||||
variant: 'contained'
|
||||
}
|
||||
},
|
||||
variants: [
|
||||
{
|
||||
props: {
|
||||
size: 'large'
|
||||
},
|
||||
style: {
|
||||
fontSize: '1rem',
|
||||
fontWeight: 'bold'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
MuiFormControl: {
|
||||
defaultProps: {
|
||||
|
||||
Reference in New Issue
Block a user