-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
isSelected
and isComplete
props from EuiHorizontalStep
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,18 @@ import React from 'react'; | |
import { render } from 'enzyme'; | ||
import { requiredProps } from '../../test'; | ||
|
||
import { EuiStepStatus } from './step_number'; | ||
import { EuiStepsHorizontal } from './steps_horizontal'; | ||
|
||
const steps = [ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
cee-chen
Author
Contributor
|
||
{ | ||
title: 'Completed Step 1', | ||
isComplete: true, | ||
status: 'complete' as EuiStepStatus, | ||
onClick: () => {}, | ||
}, | ||
{ | ||
title: 'Selected Step 2', | ||
isSelected: true, | ||
status: 'current' as EuiStepStatus, | ||
onClick: () => {}, | ||
}, | ||
{ | ||
|
@@ -29,7 +30,7 @@ const steps = [ | |
}, | ||
{ | ||
title: 'Disabled Step 4', | ||
disabled: true, | ||
status: 'disabled' as EuiStepStatus, | ||
onClick: () => {}, | ||
}, | ||
]; | ||
|
Should we just set the type to
EuiStepsHorizontalProps[steps]
up here so you don't have to doas EuiStepStatus
?