Skip to content

Commit 09d87de

Browse files
authored
Fix step render
1 parent fb75d8a commit 09d87de

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/components/tabs/Tabs.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,13 @@ export const Tab: FunctionComponent<TabProps> = ({
180180
disabled={disabled}
181181
buttons={buttons}
182182
>
183-
{wizard && activeTab && index && (
184-
<Step {...(index <= activeTab && { className: "dark" })}>{step}</Step>
185-
)}
183+
{wizard ? (
184+
activeTab && index ? (
185+
<Step {...(index <= activeTab && { className: "dark" })}>{step}</Step>
186+
) : (
187+
<Step>{step}</Step>
188+
)
189+
) : null}
186190
<Heading level={5}>{heading}</Heading>
187191
<Text small>{caption}</Text>
188192
</TabContainer>

0 commit comments

Comments
 (0)