MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / ProgressCircle

Function ProgressCircle

src/components/graph/tutorial/TutorialDialog.tsx:29–52  ·  view source on GitHub ↗
({
  isCompleted,
  isCurrent,
  onClick,
})

Source from the content-addressed store, hash-verified

27}
28
29const ProgressCircle: FC<ProgressCircleProps> = ({
30 isCompleted,
31 isCurrent,
32 onClick,
33}) => {
34 return (
35 <div
36 className="flex h-4 w-4 cursor-pointer flex-row items-center justify-center align-middle"
37 onClick={onClick}
38 >
39 {isCurrent && (
40 <div className="absolute h-4 w-4 rounded-full bg-blue-200" />
41 )}
42 {
43 <div
44 className={clsx(
45 "absolute h-2 w-2 rounded-full",
46 isCompleted || isCurrent ? "bg-blue-500" : "bg-gray-200",
47 )}
48 />
49 }
50 </div>
51 );
52};
53
54interface ProgressCirclesProps {
55 currentStep: number;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected