From 6886fd3504cd013a5fd7c1d3c71125db5245d556 Mon Sep 17 00:00:00 2001 From: Erick Date: Sun, 5 Nov 2023 01:13:46 -0500 Subject: [PATCH] removed old files, and changed a component name --- components/ui/useCode/Stepper-Form.tsx | 2 +- components/ui/useCode/StepperCard.tsx | 4 +- components/ui/useCode/Terms-of-Service.tsx | 46 ---------------------- components/ui/useCode/temp.tsx | 0 4 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 components/ui/useCode/Terms-of-Service.tsx delete mode 100644 components/ui/useCode/temp.tsx diff --git a/components/ui/useCode/Stepper-Form.tsx b/components/ui/useCode/Stepper-Form.tsx index 37d6a47..27b271a 100644 --- a/components/ui/useCode/Stepper-Form.tsx +++ b/components/ui/useCode/Stepper-Form.tsx @@ -5,7 +5,7 @@ import useStepperStore from "@/data-store/stepper-store"; import { StepOne } from "./StepOne"; import { StepTwo } from "./StepTwo"; -export function StepperEmailForm() { +export function StepperForm() { const { step } = useStepperStore(); if (step === 1) { diff --git a/components/ui/useCode/StepperCard.tsx b/components/ui/useCode/StepperCard.tsx index bd8971b..371e81f 100644 --- a/components/ui/useCode/StepperCard.tsx +++ b/components/ui/useCode/StepperCard.tsx @@ -10,7 +10,7 @@ import { import { Progress } from "@/components/ui/progress"; import useStepperStore from "@/data-store/stepper-store"; -import { StepperEmailForm } from "./Stepper-Form"; +import { StepperForm } from "./Stepper-Form"; export function StepperCard() { const { progress } = useStepperStore(); @@ -34,7 +34,7 @@ export function StepperCard() { - + ); diff --git a/components/ui/useCode/Terms-of-Service.tsx b/components/ui/useCode/Terms-of-Service.tsx deleted file mode 100644 index d3043b6..0000000 --- a/components/ui/useCode/Terms-of-Service.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import { Checkbox } from "@/components/ui/checkbox"; -import useStepperStore from "@/data-store/stepper-store"; -import { useEffect } from "react"; - -let checked: boolean = false; - -export function TermsOfServiceBox() { - const { progress, setProgress } = useStepperStore(); - const { check, setCheck } = useStepperStore(); - - function getPlaceHolder() { - if (check === true) { - return true; - } else { - return false; - } - } - - return ( - <> -
- { - checked = !checked; - setCheck(checked); - setProgress(checked ? progress + 25 : progress - 25); - }} - className='mx-4 mt-[5px]' - /> - -
- - ); -} - -export default TermsOfServiceBox; diff --git a/components/ui/useCode/temp.tsx b/components/ui/useCode/temp.tsx deleted file mode 100644 index e69de29..0000000