Skip to content

Commit 8824f77

Browse files
usetheme method instead of theme class on mui5 (#2835)
Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
1 parent fbe9731 commit 8824f77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webview/log/app/spinner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
import * as React from 'react';
77
import Loader from 'react-loader-spinner';
8-
import { createTheme, Theme, ThemeProvider } from '@mui/material/styles';
8+
import { createTheme, ThemeProvider, useTheme } from '@mui/material/styles';
99
import { withStyles, makeStyles, createStyles } from '@mui/styles';
1010
import { AppBar, Button, FormControlLabel, FormGroup, IconButton, Switch, Toolbar, Typography } from '@mui/material';
1111
import { blue } from '@mui/material/colors';
1212

13-
const useStyles = makeStyles((theme: Theme) =>
13+
const useStyles = makeStyles(() =>
1414
createStyles({
1515
root: {
1616
flexGrow: 1
1717
},
1818
menuButton: {
19-
marginRight: theme.spacing(2),
19+
marginRight: useTheme().spacing(2),
2020
},
2121
title: {
2222
flexGrow: 1,

0 commit comments

Comments
 (0)