mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
add savetheme function
This commit is contained in:
@@ -64,6 +64,10 @@ export default function ThemeCreator() {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const saveTheme = () => {
|
||||||
|
// Save the theme to the database
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
sendThemeUpdate(theme);
|
sendThemeUpdate(theme);
|
||||||
}, [theme]);
|
}, [theme]);
|
||||||
@@ -161,8 +165,8 @@ export default function ThemeCreator() {
|
|||||||
callback={CodeUpdate} />
|
callback={CodeUpdate} />
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
<button onClick={() => console.log('shared!')} className='w-full px-4 py-2 my-4 text-white transition bg-blue-500 rounded dark:text-white'>
|
<button onClick={saveTheme} className='w-full px-4 py-2 my-4 text-white transition bg-blue-500 rounded dark:text-white'>
|
||||||
Share theme
|
Save theme
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user