mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-12-22 20:47:44 +00:00
🔧 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