From 7dfa8fccf8c82642b9e1c5d5da6f3ed600b36269 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 16 Aug 2024 00:46:32 +0100 Subject: [PATCH] Refactor stepper --- src/components/Projects/ProjectStepper.tsx | 30 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/components/Projects/ProjectStepper.tsx b/src/components/Projects/ProjectStepper.tsx index 097f94bf0..009a3bb14 100644 --- a/src/components/Projects/ProjectStepper.tsx +++ b/src/components/Projects/ProjectStepper.tsx @@ -6,6 +6,7 @@ import { type LucideIcon, Play, PlayCircle, + Send, } from 'lucide-react'; import { useEffect, useRef, useState } from 'react'; import { cn } from '../../lib/classname.ts'; @@ -25,7 +26,7 @@ function StepperAction(props: StepperActionProps) { return ( ); } @@ -49,6 +50,22 @@ function StepperAction(props: StepperActionProps) { ); } +type StepperStepSeparatorProps = { + isActive: boolean; +}; + +function StepperStepSeparator(props: StepperStepSeparatorProps) { + const { isActive } = props; + + return ( +
+ ); +} + export function ProjectStepper() { const stickyElRef = useRef(null); const [isSticky, setIsSticky] = useState(false); @@ -95,9 +112,14 @@ export function ProjectStepper() { text={'Start Building'} number={1} /> -
- -
+ + +