Skip to content

Commit

Permalink
fix: remove broken style var
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti committed Apr 24, 2024
1 parent ac0f247 commit 55e44c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/components/BaseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Image from 'next/image';
import closeIcon from '~/assets/icons/x-mark.svg';
import { useCustomTheme, useModal } from '~/hooks';
import { ModalType } from '~/types';
import { zIndex } from '~/utils';

interface BaseModalProps {
children: React.ReactNode;
Expand Down Expand Up @@ -46,7 +45,7 @@ Backdrop.displayName = 'Backdrop';

export const StyledModal = styled(Modal)`
position: fixed;
z-index: ${zIndex.MODAL};
z-index: 200;
inset: 0;
display: flex;
align-items: center;
Expand All @@ -59,7 +58,7 @@ export const StyledModal = styled(Modal)`
`;

export const StyledBackdrop = styled(Backdrop)`
z-index: ${zIndex.BACKDROP};
z-index: -1;
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.7);
Expand Down
5 changes: 2 additions & 3 deletions src/containers/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import LightModeIcon from '@mui/icons-material/LightMode';
import DarkModeIcon from '@mui/icons-material/DarkMode';

import { useCustomTheme } from '~/hooks/useTheme';
import { zIndex, HEADER_HEIGHT } from '~/utils';

export const Header = () => {
const { changeTheme, theme } = useCustomTheme();
Expand All @@ -26,12 +25,12 @@ const StyledHeader = styled('header')(() => {
const { currentTheme } = useCustomTheme();
return {
display: 'flex',
height: `${HEADER_HEIGHT}rem`,
height: `5rem`,
padding: '0 8rem',
alignItems: 'center',
justifyContent: 'space-between',
width: '100%',
zIndex: zIndex.HEADER,
zIndex: '100',
boxShadow: currentTheme.boxShadow,
'@media (max-width: 600px)': {
padding: '0 1rem',
Expand Down

0 comments on commit 55e44c4

Please sign in to comment.