From 073a437b86c09a71513b96c2cdd918bf94244980 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 3 Aug 2024 14:48:14 -0700 Subject: Don't display schedule background image on mobile --- client/src/components/Schedule.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'client') diff --git a/client/src/components/Schedule.tsx b/client/src/components/Schedule.tsx index 554674b..a0938a8 100644 --- a/client/src/components/Schedule.tsx +++ b/client/src/components/Schedule.tsx @@ -1,9 +1,10 @@ import React from 'react'; -import { Paper, Typography, useTheme } from '@mui/material'; +import { Paper, Typography, useMediaQuery, useTheme } from '@mui/material'; import divineShepherd from '/divine-shepherd.jpg'; function Schedule() { const theme = useTheme(); + const isMobile = useMediaQuery('(max-width: 768px)'); return (
@@ -19,12 +20,13 @@ function Schedule() { style={{ display: 'flex', justifyContent: 'center', - width: '95%', + width: '90%', }} >
-

3:00 PM

+

2:00 PM

Ceremony -- cgit v1.2.3