Skip to content

Commit 83507f6

Browse files
committed
Updates
Signed-off-by: vr-varad <varadgupta21@gmail.com>
1 parent 0a21b47 commit 83507f6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/custom/Modal/index.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ButtonProps, DialogProps, styled, Tooltip } from '@mui/material';
1+
import { ButtonProps, DialogProps, styled } from '@mui/material';
22
import React, { useRef, useState } from 'react';
33
import { Box, Dialog, IconButton, Paper, Typography } from '../../base';
44
import { ContainedButton, OutlinedButton, TextButton } from '../../base/Button/Button';
@@ -58,19 +58,19 @@ const StyledDialog = styled(Dialog)`
5858
}
5959
`;
6060

61-
const FullscreenButton = styled(FullScreenIcon)({
61+
const FullscreenButton = styled(FullScreenIcon)(({ theme }) => ({
6262
height: '2.25rem',
6363
width: '2.25rem',
64-
fill: '#fff',
64+
fill: theme.palette.common.white,
6565
cursor: 'pointer'
66-
});
66+
}));
6767

68-
const FullscreenExitButton = styled(FullScreenExitIcon)({
68+
const FullscreenExitButton = styled(FullScreenExitIcon)(({ theme }) => ({
6969
height: '2.25rem',
7070
width: '2.25rem',
71-
fill: '#fff',
71+
fill: theme.palette.common.white,
7272
cursor: 'pointer'
73-
});
73+
}));
7474

7575
export const ModalStyledHeader = styled('div')(({ theme }) => ({
7676
background: theme.palette.mode === 'light' ? lightModalGradient.header : darkModalGradient.header,
@@ -178,13 +178,13 @@ export const Modal: React.FC<ModalProps> = ({
178178
</Typography>
179179
<div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
180180
{isFullScreenModeAllowed && (
181-
<Tooltip title={fullScreen ? 'Exit Fullscreen' : 'Enter Fullscreen'}>
181+
<CustomTooltip title={fullScreen ? 'Exit Fullscreen' : 'Enter Fullscreen'}>
182182
{fullScreen ? (
183183
<FullscreenExitButton onClick={toggleFullScreen} />
184184
) : (
185185
<FullscreenButton onClick={toggleFullScreen} />
186186
)}
187-
</Tooltip>
187+
</CustomTooltip>
188188
)}
189189
<CloseBtn onClick={closeModal}>
190190
<CloseIcon {...iconLarge} fill="#fff"></CloseIcon>

0 commit comments

Comments
 (0)