1
0
Fork 0

feat(fs.dev): Added theme support

This commit is contained in:
Joost De Cock 2021-12-11 14:04:05 +01:00
parent 84ffe26a76
commit e1ecd0cb98
26 changed files with 834 additions and 96 deletions

View file

@ -0,0 +1,13 @@
import themes from 'shared/themes/index.js'
const ThemePicker = ({ app }) => {
return (
<select className="select select-bordered w-full max-w-xs" onChange={evt => app.setTheme(evt.target.value)}>
{Object.keys(themes).map(theme => (
<option>{theme}</option>
))}
</select>
)
}
export default ThemePicker