Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Sep 14, 2023
1 parent 9159faf commit c3a44b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/app/src/components/stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const ANTD_COLORS_OPTIONS = Object.entries(ANTD_COLORS).map(

export function StoryColor() {
const [formState, setFormState] = React.useState({
useReactSelect: false,
reactSelect: false,
color: ANTD_VARS.colorText,
backgroundColor: ANTD_VARS.colorBgContainer,
borderColor: ANTD_VARS.colorBorderSecondary,
Expand Down Expand Up @@ -150,7 +150,7 @@ export function StoryColor() {
<div className="border-t my-1"></div>
<label className="flex items-center gap-2">
<span className="text-colorTextLabel">Use react-select</span>
<input type="checkbox" {...form.useReactSelect.checkedProps()} />
<input type="checkbox" {...form.reactSelect.checkedProps()} />
</label>
{renderField("Text", form.color)}
{renderField("Background", form.backgroundColor)}
Expand All @@ -171,7 +171,7 @@ export function StoryColor() {
return (
<label className="flex flex-col gap-1">
<span className="text-colorTextLabel">{label}</span>
{formState.useReactSelect ? (
{formState.reactSelect ? (
<ReactSelect
unstyled
options={ANTD_COLORS_OPTIONS}
Expand Down

0 comments on commit c3a44b9

Please sign in to comment.