VueRouter, Pinia state management, add pages, design preferences page
This commit is contained in:
9
software/src/data/stores/userStore.ts
Normal file
9
software/src/data/stores/userStore.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { useLocalStorage } from "@vueuse/core";
|
||||
import { ThemeEnum } from "../enums/themeEnums";
|
||||
|
||||
export const useUserStore = defineStore('user', {
|
||||
state: () => ({
|
||||
theme: useLocalStorage<ThemeEnum>("hackmycart/userStore/theme", ThemeEnum.DARKRED)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user