Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nikk15 committed Aug 1, 2023
1 parent f1cefd7 commit ebd6c1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin/src/react-components/ThemeBuilder/ThemeBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ const ThemeBuilder = ({config, onGlobalChange, onSave, path, setState, disableSa
onSave(e)
}

const copyThemeJson = () => {

}

// edit name and validate no duplicates
// add new theme
// duplicate theme
Expand All @@ -72,6 +76,7 @@ const ThemeBuilder = ({config, onGlobalChange, onSave, path, setState, disableSa
<Select label="Themes" options={formattedThemes} name="Themes" value={selectedTheme.id} onChange={onThemeSelect}/>
<Button type="button" text="Add theme" label="Add theme" onClick={e => addTheme(e)}/>
<Button type="button" text="Delete theme" label="Delete theme" onClick={deleteTheme}/>
<Button type="button" text="Copy theme json" label="Copy theme json" onClick={copyThemeJson}/>
<form onSubmit={onSubmit} >
<Input label="Name" name="Name" value={selectedTheme.name} onChange={onNameChange} placeholder="Name your theme" />
{Object.entries(selectedTheme.variables).map(([key, value]) => {
Expand Down

0 comments on commit ebd6c1f

Please sign in to comment.