forked from cerc-io/snowballtools-base
🔧 chore: first index to be '1' for Steps
This commit is contained in:
parent
0aeea36dbd
commit
f5296e9b8d
@ -31,7 +31,7 @@ export const Step = ({
|
||||
|
||||
const renderConnector = useCallback(
|
||||
(index: number) => {
|
||||
if (index === 0) {
|
||||
if (index === 1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ export const Step = ({
|
||||
{completed ? (
|
||||
<CheckRoundFilledIcon className="w-full h-full" />
|
||||
) : (
|
||||
index + 1
|
||||
index
|
||||
)}
|
||||
</div>
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ export const Steps = ({
|
||||
{...step}
|
||||
orientation={orientation}
|
||||
currentIndex={currentIndex}
|
||||
index={i}
|
||||
index={i + 1}
|
||||
/>
|
||||
</Fragment>
|
||||
))}
|
||||
|
Loading…
Reference in New Issue
Block a user