Remove Row and run prettier
This commit is contained in:
parent
cfd6af7c72
commit
a42a0f086c
|
@ -1,4 +1,3 @@
|
||||||
import { Row } from './layout/row'
|
|
||||||
import { RadioGroup } from '@headlessui/react'
|
import { RadioGroup } from '@headlessui/react'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
@ -20,8 +19,11 @@ export function ChoicesToggleGroup(props: {
|
||||||
children,
|
children,
|
||||||
} = props
|
} = props
|
||||||
return (
|
return (
|
||||||
<RadioGroup value={currentChoice.toString()} onChange={(str) => null}>
|
<RadioGroup
|
||||||
<Row className={'items-center flex-wrap gap-3'}>
|
className={clsx(className, 'flex flex-row flex-wrap items-center gap-3')}
|
||||||
|
value={currentChoice.toString()}
|
||||||
|
onChange={(str) => null}
|
||||||
|
>
|
||||||
{Object.keys(choicesMap).map((choiceKey) => (
|
{Object.keys(choicesMap).map((choiceKey) => (
|
||||||
<RadioGroup.Option
|
<RadioGroup.Option
|
||||||
key={choiceKey}
|
key={choiceKey}
|
||||||
|
@ -44,7 +46,6 @@ export function ChoicesToggleGroup(props: {
|
||||||
</RadioGroup.Option>
|
</RadioGroup.Option>
|
||||||
))}
|
))}
|
||||||
{children}
|
{children}
|
||||||
</Row>
|
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user