feat(kol): sidebar nav groups for marketplace + KOL workspace
This commit is contained in:
@@ -65,6 +65,8 @@ export const useAuthStore = defineStore("auth", () => {
|
||||
}
|
||||
|
||||
const isAuthenticated = computed(() => Boolean(accessToken.value && user.value));
|
||||
const kolProfile = computed(() => user.value?.kol_profile ?? null);
|
||||
const isActiveKol = computed(() => kolProfile.value?.status === "active");
|
||||
|
||||
return {
|
||||
accessToken,
|
||||
@@ -72,9 +74,10 @@ export const useAuthStore = defineStore("auth", () => {
|
||||
user,
|
||||
initialized,
|
||||
isAuthenticated,
|
||||
kolProfile,
|
||||
isActiveKol,
|
||||
bootstrap,
|
||||
login,
|
||||
logout,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user