Skip to content

Commit

Permalink
Remove some unnecessary module styles
Browse files Browse the repository at this point in the history
  • Loading branch information
DinerIsmail committed Sep 17, 2023
1 parent a0a933c commit ed00d8f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
5 changes: 0 additions & 5 deletions components/admin/layout-container/LayoutContainer.module.scss

This file was deleted.

2 changes: 0 additions & 2 deletions components/admin/layout-container/LayoutContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Box, Flex, SlideFade, useBreakpointValue } from '@chakra-ui/react'
import styles from './LayoutContainer.module.scss'
import Nav from '../nav'

const LayoutContainer = ({ children }) => {
Expand All @@ -9,7 +8,6 @@ const LayoutContainer = ({ children }) => {
<SlideFade in>
<Flex justifyContent="center">
<Box
className={styles.root}
minHeight={useBreakpointValue({
base: 'calc(100vh - 186px)',
lg: 'calc(100vh - 140px)',
Expand Down
9 changes: 0 additions & 9 deletions components/drawer/Drawer.module.scss

This file was deleted.

19 changes: 12 additions & 7 deletions components/drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import {
Heading,
Button,
Text,
chakra,
useBreakpointValue,
} from '@chakra-ui/react'
import { HiOutlineSearch, HiOutlineX } from 'react-icons/hi'

import VolunteerSwitch from '@components/volunteer-switch'
import customMultiSelectStyles from '@styles/select-styles'
import { REMOTE_URL } from '@helpers/config'
import styles from './Drawer.module.scss'
import LogoImage from '../../public/logo.png'

const Drawer = ({
Expand All @@ -39,7 +39,15 @@ const Drawer = ({
const maxInputWidth = useBreakpointValue({ base: 'initial', md: '280px' })

return (
<div className={styles.drawer}>
<chakra.div
position="fixed"
width="300px"
height="100vh"
overflowY="scroll"
borderRight="1px solid rgb(226, 232, 240)"
backgroundColor="white"
zIndex="3"
>
<Flex height="100%" direction="column" justifyContent="space-between">
<Box>
<Link as={NextLink} href={REMOTE_URL}>
Expand Down Expand Up @@ -125,10 +133,7 @@ const Drawer = ({
</Flex>
</Box>
<Box p="1rem">
<Link
href={`${window.location.href}new-listing`}
target="_blank"
>
<Link href={`${window.location.href}new-listing`} target="_blank">
<Button my="2rem">Propose new listing</Button>
</Link>
<Heading as="h2" fontSize="1.25rem">
Expand All @@ -148,7 +153,7 @@ const Drawer = ({
</Link>
</Box>
</Flex>
</div>
</chakra.div>
)
}

Expand Down

1 comment on commit ed00d8f

@vercel
Copy link

@vercel vercel bot commented on ed00d8f Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.