From 64c11c5fe55698a4c9519a8203acb5e6ccf25ba2 Mon Sep 17 00:00:00 2001 From: Jeff Canale Date: Mon, 17 Oct 2022 20:58:45 +0800 Subject: [PATCH] Used tailwind classes on settings --- src/components/settings.js | 84 ++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 49 deletions(-) diff --git a/src/components/settings.js b/src/components/settings.js index 1243f36..a02d92e 100644 --- a/src/components/settings.js +++ b/src/components/settings.js @@ -1,13 +1,5 @@ -import React, { useEffect, useState } from "react"; -import { - Drawer, - Divider, - TextField, - Typography, - Box, - Stack, - Switch, -} from "@mui/material"; +import React from 'react'; +import { Drawer, TextField, Typography, Stack, Switch } from '@mui/material'; function Settings({ open, @@ -23,7 +15,7 @@ function Settings({ const handleTimeFormatChange = (event) => { const value = event.target.checked; - const format = value ? "24" : "12"; + const format = value ? '24' : '12'; changeTimeFormat(format); }; @@ -33,51 +25,45 @@ function Settings({ anchor="right" PaperProps={{ sx: { - width: "25%", + width: '25%', }, }} open={open} onClose={closeModal} className="p-3" > - - - Your Name - - - - - Time Format - - - - 12 Hour - +
+ Enter your name +
+
+ - 24 Hour - - +
+
+ Time Format +
+
+ + 12 Hour + + 24 Hour + +
+ );