chore: update prettier tab width for consistency (#175)

This commit is contained in:
41666 2021-03-13 22:54:34 -05:00 committed by GitHub
parent a931f8c69c
commit f24d2fcc99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
247 changed files with 7224 additions and 7375 deletions

View file

@ -2,32 +2,32 @@ import * as React from 'react';
import { HorizontalSwitch } from './HorizontalSwitch';
export default {
title: 'Atoms/Horizontal Switch',
component: HorizontalSwitch,
args: {
items: ['true', 'false'],
value: 'true',
},
title: 'Atoms/Horizontal Switch',
component: HorizontalSwitch,
args: {
items: ['true', 'false'],
value: 'true',
},
};
const Story = (args) => {
const [value, setValue] = React.useState(args.value);
const [value, setValue] = React.useState(args.value);
return (
<HorizontalSwitch
{...args}
value={value}
onChange={(a) => {
setValue(a);
args.onChange(a);
}}
/>
);
return (
<HorizontalSwitch
{...args}
value={value}
onChange={(a) => {
setValue(a);
args.onChange(a);
}}
/>
);
};
export const Switch = Story.bind({});
export const SwitchThree = Story.bind({});
SwitchThree.args = {
items: ['aaa', 'bbb', 'ccc'],
value: 'aaa',
items: ['aaa', 'bbb', 'ccc'],
value: 'aaa',
};