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

fix(core): set modifiers conditionally #500

Closed
wants to merge 3 commits into from

Conversation

ValeraS
Copy link

@ValeraS ValeraS commented Oct 24, 2019

Решение проблемы, с установкой модификатора из переменной: #493 второй пункт

const optionalSize = true ? 's' : 'm' // Имеем тип 's' | 'm'

const Button = composeU(sizeS, sizeM)(ButtonBase)
// Получается такая сигнатура: { size?: 's' | 'm' }
const component = <Button size={optionalSize} />

@ValeraS ValeraS force-pushed the fix/set-modifiers-conditionally branch from 60eb096 to 0638253 Compare January 14, 2020 16:35
@yarastqt
Copy link
Member

Было исправлено в рамках #557

@yarastqt yarastqt closed this Jul 14, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants