|
1 | | -import { ButtonProps, DialogProps, styled, Tooltip } from '@mui/material'; |
| 1 | +import { ButtonProps, DialogProps, styled } from '@mui/material'; |
2 | 2 | import React, { useRef, useState } from 'react'; |
3 | 3 | import { Box, Dialog, IconButton, Paper, Typography } from '../../base'; |
4 | 4 | import { ContainedButton, OutlinedButton, TextButton } from '../../base/Button/Button'; |
@@ -58,19 +58,19 @@ const StyledDialog = styled(Dialog)` |
58 | 58 | } |
59 | 59 | `; |
60 | 60 |
|
61 | | -const FullscreenButton = styled(FullScreenIcon)({ |
| 61 | +const FullscreenButton = styled(FullScreenIcon)(({ theme }) => ({ |
62 | 62 | height: '2.25rem', |
63 | 63 | width: '2.25rem', |
64 | | - fill: '#fff', |
| 64 | + fill: theme.palette.common.white, |
65 | 65 | cursor: 'pointer' |
66 | | -}); |
| 66 | +})); |
67 | 67 |
|
68 | | -const FullscreenExitButton = styled(FullScreenExitIcon)({ |
| 68 | +const FullscreenExitButton = styled(FullScreenExitIcon)(({ theme }) => ({ |
69 | 69 | height: '2.25rem', |
70 | 70 | width: '2.25rem', |
71 | | - fill: '#fff', |
| 71 | + fill: theme.palette.common.white, |
72 | 72 | cursor: 'pointer' |
73 | | -}); |
| 73 | +})); |
74 | 74 |
|
75 | 75 | export const ModalStyledHeader = styled('div')(({ theme }) => ({ |
76 | 76 | background: theme.palette.mode === 'light' ? lightModalGradient.header : darkModalGradient.header, |
@@ -178,13 +178,13 @@ export const Modal: React.FC<ModalProps> = ({ |
178 | 178 | </Typography> |
179 | 179 | <div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}> |
180 | 180 | {isFullScreenModeAllowed && ( |
181 | | - <Tooltip title={fullScreen ? 'Exit Fullscreen' : 'Enter Fullscreen'}> |
| 181 | + <CustomTooltip title={fullScreen ? 'Exit Fullscreen' : 'Enter Fullscreen'}> |
182 | 182 | {fullScreen ? ( |
183 | 183 | <FullscreenExitButton onClick={toggleFullScreen} /> |
184 | 184 | ) : ( |
185 | 185 | <FullscreenButton onClick={toggleFullScreen} /> |
186 | 186 | )} |
187 | | - </Tooltip> |
| 187 | + </CustomTooltip> |
188 | 188 | )} |
189 | 189 | <CloseBtn onClick={closeModal}> |
190 | 190 | <CloseIcon {...iconLarge} fill="#fff"></CloseIcon> |
|
0 commit comments