Skip to content

Commit

Permalink
Fixed oppenning hours button's size
Browse files Browse the repository at this point in the history
  • Loading branch information
marinovl7 committed Feb 10, 2023
1 parent bd9bbe9 commit bba7e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
14 changes: 2 additions & 12 deletions components/Layout/FoodPlaceTitleContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import dynamic from 'next/dynamic'
import { useState, useContext } from 'react'
import dayjs from 'dayjs'
import {
Grid,
Typography,
useTheme,
LinearProgress,
Button,
Box,
Tooltip,
useMediaQuery,
} from '@mui/material'
import { Grid, Typography, useTheme, LinearProgress, Button, Box, Tooltip } from '@mui/material'
import { linearProgressClasses } from '@mui/material/LinearProgress'
import { styled } from '@mui/material/styles'
import { LocationOn } from '@mui/icons-material'
Expand All @@ -34,7 +25,6 @@ export default function FoodPlaceTitleContainer({ datePickerValue }: FoodPlaceTi
const theme = useTheme()
const { t } = useTranslation('common')
const weekend = datePickerValue?.get('day') === 6 || datePickerValue?.get('day') === 0
const matches = useMediaQuery('(min-width:28.125em)')

const BorderLinearProgress = styled(LinearProgress)(() => ({
[`&.${linearProgressClasses.colorPrimary}`]: {
Expand Down Expand Up @@ -146,7 +136,7 @@ export default function FoodPlaceTitleContainer({ datePickerValue }: FoodPlaceTi
<Button
onClick={() => setOpen(true)}
variant="contained"
size={matches ? 'medium' : 'small'}
size="medium"
sx={{
backgroundColor: theme.palette.primary.light,
color: theme.palette.primary.main,
Expand Down
1 change: 1 addition & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function MyApp({ Component, emotionCache = clientSideEmotionCache, pageProps }:
<link rel="mask-icon" href={`${assetPrefix}/safari-pinned-tab.svg`} color="#3070b3" />
<meta name="msapplication-TileColor" content="#3070b3" />
<meta name="theme-color" content="#ffffff" />
<meta http-equiv="Permissions-Policy" content="interest-cohort=()" />
</Head>
<CacheProvider value={emotionCache}>
<ThemeProvider theme={theme}>
Expand Down

0 comments on commit bba7e65

Please sign in to comment.