Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Использование компонента Stepper, Step с styled-components #4

Open
hellpirat opened this issue Aug 8, 2018 · 3 comments

Comments

@hellpirat
Copy link

<Stepper value={step} onChange={() => {}}>
       <StepWrapper key="1">Регистрация</StepWrapper>
       <StepWrapper key="2">Подтверждение почты</StepWrapper>
 </Stepper>
const StepWrapper = styled(Step)
  padding: 0;

Результат: Child component should be instance of <Step />

@hellpirat
Copy link
Author

const StepWrapper = styled(Step)`
  padding: 0 !important;
`
StepWrapper.displayName = 'ruiStep'

Вот так вроде сработало :)

@hellpirat
Copy link
Author

C табами похожая ситуация: )
Решается так: TabItemWrapper.displayName = 'ruiTabsItem'

@andrepolischuk
Copy link
Member

да, в текущей реализации компоненты оборачивающие дочерние айтемы: табы, сайднав, меню и некоторые другие требуют определенный displayName у детей

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants