diff --git a/src/components/Projects/ProjectStepper.tsx b/src/components/Projects/ProjectStepper.tsx index 009a3bb14..526d3b7cd 100644 --- a/src/components/Projects/ProjectStepper.tsx +++ b/src/components/Projects/ProjectStepper.tsx @@ -24,7 +24,7 @@ function StepperAction(props: StepperActionProps) { if (isActive) { return ( - @@ -66,6 +66,32 @@ function StepperStepSeparator(props: StepperStepSeparatorProps) { ); } +type MilestoneStepProps = { + icon: LucideIcon; + text: string; + isCompleted?: boolean; +}; + +function MilestoneStep(props: MilestoneStepProps) { + const { icon: DisplayIcon, text, isCompleted } = props; + + if (isCompleted) { + return ( + + + {text} + + ); + } + + return ( + + + {text} + + ); +} + export function ProjectStepper() { const stickyElRef = useRef(null); const [isSticky, setIsSticky] = useState(false); @@ -107,28 +133,22 @@ export function ProjectStepper() {
- + - -
- + + +
);