Skip to content

Commit 46e3f1b

Browse files
committed
Update
Signed-off-by: vr-varad <[email protected]>
1 parent e1aed56 commit 46e3f1b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/custom/CatalogFilterSection/CatalogFilterSidebar.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useCallback, useState } from 'react';
44
import { Box, Drawer, Typography } from '../../base';
55
import { CloseIcon } from '../../icons';
66
import { darkTeal } from '../../theme';
7-
import { SLIGHT_BLUE } from '../../theme/colors/colors';
7+
import { darkModalGradient, lightModalGradient } from '../../theme/colors/colors';
88
import { CloseBtn } from '../Modal';
99
import CatalogFilterSidebarState from './CatalogFilterSidebarState';
1010
import {
@@ -152,7 +152,15 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
152152
styleProps={appliedStyleProps}
153153
/>
154154
</Box>
155-
<Box sx={{ backgroundColor: SLIGHT_BLUE, height: '5vh' }} />
155+
<Box
156+
sx={{
157+
background:
158+
theme.palette.mode === 'light'
159+
? lightModalGradient.fotter
160+
: darkModalGradient.fotter,
161+
height: '5vh'
162+
}}
163+
/>
156164
</Box>
157165
</Drawer>
158166
</FilterDrawerDiv>

src/custom/CatalogFilterSection/style.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { styled } from '@mui/material/styles';
22
import { Box, Button, ListItemButton } from '../../base';
3-
import { SLIGHT_BLUE } from '../../theme/colors/colors';
3+
import { darkModalGradient, lightModalGradient } from '../../theme/colors/colors';
44
import { StyleProps } from './CatalogFilterSidebar';
55

66
export const FiltersCardDiv = styled(Box)<{ styleProps: StyleProps }>(({ styleProps }) => ({
@@ -46,12 +46,12 @@ export const FilterButton = styled(Button)(({ theme }) => ({
4646
}
4747
}));
4848

49-
export const FiltersDrawerHeader = styled(Box)(() => ({
49+
export const FiltersDrawerHeader = styled(Box)(({ theme }) => ({
5050
display: 'flex',
5151
justifyContent: 'space-between',
5252
alignItems: 'center',
5353
padding: '0.5rem 1rem',
54-
backgroundColor: SLIGHT_BLUE,
54+
background: theme.palette.mode === 'light' ? lightModalGradient.header : darkModalGradient.header,
5555
height: '10vh'
5656
}));
5757

0 commit comments

Comments
 (0)