mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-18 02:08:34 +00:00
refactor: with styled-components
This commit is contained in:
42 files changed
+845
-934
No files matched your search
@@ -1,18 +1,17 @@
|
||||
import { useData } from '../../../hooks/useData'
|
||||
import type { ButtonVariantProps } from '../../Button'
|
||||
|
||||
export function ButtonsStyleSelect() {
|
||||
const { data, setData } = useData()
|
||||
|
||||
return (
|
||||
<select
|
||||
value={data.settings.buttonsSchema as string}
|
||||
value={data.settings.buttonsSchema}
|
||||
onChange={e =>
|
||||
setData({
|
||||
...data,
|
||||
settings: {
|
||||
...data.settings,
|
||||
buttonsSchema: e.target.value as ButtonVariantProps['styleSchema']
|
||||
buttonsSchema: e.target.value as 'square' | 'rounded' | 'pill'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user