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: [CheckboxStory] responsive layout #61

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 15 additions & 12 deletions stories/dooboo-ui/CheckboxStories/CheckboxStory.tsx
Expand Up @@ -53,23 +53,26 @@ const CheckboxStory: FC = () => {
Checkbox
</StyledText>

<View style={{flexDirection: 'row'}}>
<View
style={{
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',
}}>
{types.map((type) => (
<>
<LabelWapper label={type ?? 'default'}>
<Checkbox
checked={checked}
onPress={() => setChecked(!checked)}
type={type}
/>
</LabelWapper>

<View style={{width: 22}} />
</>
<LabelWapper key={type} label={type ?? 'default'}>
<Checkbox
style={{margin: 25}}
checked={checked}
onPress={() => setChecked(!checked)}
type={type}
/>
</LabelWapper>
))}

<LabelWapper label="disabled">
<Checkbox
style={{margin: 25}}
checked={checked}
onPress={() => setChecked(!checked)}
disabled
Expand Down