From db0819f3693945738cb514d65fc8e7a91744fbab Mon Sep 17 00:00:00 2001 From: Shuveksha Tuladhar Date: Sat, 12 Oct 2024 23:58:00 -0700 Subject: [PATCH 1/8] style: Implement TailwindCSS on Toggle component --- src/components/Toggle.css | 19 ------------------- src/components/Toggle.jsx | 9 ++++----- 2 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 src/components/Toggle.css diff --git a/src/components/Toggle.css b/src/components/Toggle.css deleted file mode 100644 index f034b1b..0000000 --- a/src/components/Toggle.css +++ /dev/null @@ -1,19 +0,0 @@ -.Toggle { - margin-right: 10px; - display: flex; - align-items: center; -} - -.Toggle-checkbox { - accent-color: var(--color-accent); - margin-right: 10px; - cursor: pointer; -} - -.Toggle-label { - font-size: 1em; -} - -.Toggle-text { - margin-left: 5px; -} diff --git a/src/components/Toggle.jsx b/src/components/Toggle.jsx index bc63351..a1ee278 100644 --- a/src/components/Toggle.jsx +++ b/src/components/Toggle.jsx @@ -1,5 +1,4 @@ import { useState } from 'react'; -import './Toggle.css'; export function Toggle({ on, toggle, name, isDisabled }) { const [message, setMessage] = useState(''); @@ -23,20 +22,20 @@ export function Toggle({ on, toggle, name, isDisabled }) { } }; return ( -
-