add savetheme function

This commit is contained in:
SethBurkart123
2024-03-31 22:36:28 +11:00
parent 7ca2f14adf
commit 782696a5a1
+6 -2
View File
@@ -64,6 +64,10 @@ export default function ThemeCreator() {
}));
}
const saveTheme = () => {
// Save the theme to the database
}
useEffect(() => {
sendThemeUpdate(theme);
}, [theme]);
@@ -161,8 +165,8 @@ export default function ThemeCreator() {
callback={CodeUpdate} />
</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'>
Share theme
<button onClick={saveTheme} className='w-full px-4 py-2 my-4 text-white transition bg-blue-500 rounded dark:text-white'>
Save theme
</button>
</div>
</div>