Skip to content

Commit 773c5a9

Browse files
refactor: using theme in background in Panel component
Signed-off-by: Vidit Kushwaha <viditkushwaha530@gmail.com>
1 parent fed9d21 commit 773c5a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/custom/Panel/style.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ListItemProps } from '@mui/material';
22
import { Box, IconButton, ListItem } from '../../base';
33
import { PanelDragHandleIcon } from '../../icons/PanelDragHandle';
4-
import { accentGrey, black, styled } from '../../theme';
4+
import { black, styled } from '../../theme';
55
import { PanelProps } from './Panel';
66

77
export const ListHeader = styled(ListItem)(({ theme }) => ({
@@ -68,7 +68,7 @@ export const DrawerHeader = styled('div')(({ theme }) => ({
6868

6969
export const PanelBody = styled(Box)(({ theme }) => ({
7070
padding: theme.spacing(2),
71-
backgroundColor: theme.palette.mode === 'light' ? accentGrey[10] : accentGrey[100],
71+
backgroundColor: theme.palette.background.surfaces,
7272
overflow: 'auto',
7373
flex: 1,
7474
minHeight: 0

0 commit comments

Comments
 (0)