mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-18 23:46:04 +01:00
fix: some details
This commit is contained in:
25
src/components/Dash/FontsSelect/index.tsx
Normal file
25
src/components/Dash/FontsSelect/index.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { useData } from '../../../hooks/useData'
|
||||
import type { Fonts } from '../../../styles/stitches.config'
|
||||
|
||||
export function FontsSelect() {
|
||||
const { data, setData } = useData()
|
||||
|
||||
return (
|
||||
<select
|
||||
value={data.settings.font}
|
||||
onChange={e =>
|
||||
setData({
|
||||
...data,
|
||||
settings: {
|
||||
...data.settings,
|
||||
font: e.target.value as Fonts
|
||||
}
|
||||
})
|
||||
}
|
||||
>
|
||||
<option value="baloo">Baloo</option>
|
||||
<option value="montserrat">Montserrat</option>
|
||||
<option value="roboto">Roboto</option>
|
||||
</select>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user