fix: some details

This commit is contained in:
Daniel Soares
2021-12-15 08:11:58 -03:00
parent 2f4dd0097b
commit 5df44ceddc
22 changed files with 330 additions and 118 deletions

View 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>
)
}