@@ -33,6 +33,7 @@ import {
33
33
IconButton ,
34
34
MenuItem ,
35
35
DialogContentText ,
36
+ useTheme ,
36
37
} from "@mui/material" ;
37
38
import EditIcon from "@mui/icons-material/Edit" ;
38
39
import { Trans , useTranslation } from "react-i18next" ;
@@ -55,7 +56,6 @@ import DialogFooter from "./DialogFooter";
55
56
import { Paragraph } from "./styles" ;
56
57
import { IncorrectPasswordError , UnauthorizedError } from "../app/errors" ;
57
58
import { ProChip } from "./SubscriptionPopup" ;
58
- import theme from "./theme" ;
59
59
import session from "../app/Session" ;
60
60
61
61
const Account = ( ) => {
@@ -147,6 +147,7 @@ const ChangePassword = () => {
147
147
} ;
148
148
149
149
const ChangePasswordDialog = ( props ) => {
150
+ const theme = useTheme ( ) ;
150
151
const { t } = useTranslation ( ) ;
151
152
const [ error , setError ] = useState ( "" ) ;
152
153
const [ currentPassword , setCurrentPassword ] = useState ( "" ) ;
@@ -430,6 +431,7 @@ const PhoneNumbers = () => {
430
431
} ;
431
432
432
433
const AddPhoneNumberDialog = ( props ) => {
434
+ const theme = useTheme ( ) ;
433
435
const { t } = useTranslation ( ) ;
434
436
const [ error , setError ] = useState ( "" ) ;
435
437
const [ phoneNumber , setPhoneNumber ] = useState ( "" ) ;
@@ -928,6 +930,7 @@ const TokensTable = (props) => {
928
930
} ;
929
931
930
932
const TokenDialog = ( props ) => {
933
+ const theme = useTheme ( ) ;
931
934
const { t } = useTranslation ( ) ;
932
935
const [ error , setError ] = useState ( "" ) ;
933
936
const [ label , setLabel ] = useState ( props . token ?. label || "" ) ;
@@ -1069,6 +1072,7 @@ const DeleteAccount = () => {
1069
1072
} ;
1070
1073
1071
1074
const DeleteAccountDialog = ( props ) => {
1075
+ const theme = useTheme ( ) ;
1072
1076
const { t } = useTranslation ( ) ;
1073
1077
const { account } = useContext ( AccountContext ) ;
1074
1078
const [ error , setError ] = useState ( "" ) ;
0 commit comments