From 883a907350ceb06a9aac7f2e45d84179ba220d20 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Mon, 1 Jul 2024 23:53:01 -0400 Subject: Remove commented out code and unused import in Landing.jsx, refactor CreateThingModal.jsx for improved readability --- src/views/Landing/Landing.jsx | 3 +- src/views/Modals/Inputs/CreateThingModal.jsx | 100 ++++++++++++--------------- 2 files changed, 46 insertions(+), 57 deletions(-) diff --git a/src/views/Landing/Landing.jsx b/src/views/Landing/Landing.jsx index 2041e42..6d3a1ce 100644 --- a/src/views/Landing/Landing.jsx +++ b/src/views/Landing/Landing.jsx @@ -5,7 +5,6 @@ import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' import FeaturesSection from './FeaturesSection' import HomeHero from './HomeHero' -import PricingSection from './PricingSection' const Landing = () => { const Navigate = useNavigate() const getCurrentUser = () => { @@ -24,7 +23,7 @@ const Landing = () => { - + {/* */} ) } diff --git a/src/views/Modals/Inputs/CreateThingModal.jsx b/src/views/Modals/Inputs/CreateThingModal.jsx index ffce51c..96b7954 100644 --- a/src/views/Modals/Inputs/CreateThingModal.jsx +++ b/src/views/Modals/Inputs/CreateThingModal.jsx @@ -3,7 +3,6 @@ import { Button, FormControl, FormHelperText, - FormLabel, Input, Modal, ModalDialog, @@ -67,76 +66,67 @@ function CreateThingModal({ isOpen, onClose, onSave, currentThing }) { {currentThing?.id ? 'Edit' : 'Create'} Thing - - Name -