mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-14 04:25:35 +01:00
adding option for branding
This commit is contained in:
@@ -3,7 +3,9 @@ import { persist } from "zustand/middleware"
|
||||
|
||||
type ThemeState = {
|
||||
backgroundUrl: string | null
|
||||
brandName: string
|
||||
setBackground: (_url: string | null) => void
|
||||
setBrandName: (_name: string) => void
|
||||
reset: () => void
|
||||
}
|
||||
|
||||
@@ -11,8 +13,10 @@ export const useThemeStore = create<ThemeState>()(
|
||||
persist(
|
||||
(set) => ({
|
||||
backgroundUrl: null,
|
||||
brandName: "Rahoot",
|
||||
setBackground: (backgroundUrl) => set({ backgroundUrl }),
|
||||
reset: () => set({ backgroundUrl: null }),
|
||||
setBrandName: (brandName) => set({ brandName }),
|
||||
reset: () => set({ backgroundUrl: null, brandName: "Rahoot" }),
|
||||
}),
|
||||
{ name: "theme-preferences" },
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user