Update Session07 Frontend.md

fixed minor bugs
This commit is contained in:
Amin
2025-06-07 00:08:56 +03:30
committed by GitHub
parent d99be559f7
commit c2990c20cb
@@ -1,6 +1,6 @@
# Branching # Branching
 - [ ] Create the feature/authentication branch based on develop - [ ] Create the feature/authentication branch based on develop
# Adding Models # Adding Models
Create three files inside this folder: Create three files inside this folder:
@@ -61,7 +61,7 @@ import {create} from 'zustand';
interface User { interface User {
  phoneNumber: string;   phoneNumber: string;
  roles: any;   roles: string[];
} }
@@ -161,7 +161,7 @@ This defines the overall structure of the authentication store:
## 🔹 Zustand Store Definition ## 🔹 Zustand Store Definition
```ts ```ts
export const useAuthStore = create<AuthState>((set) => ({ export const useAuthStore = create<AuthState>((set) => ({ ... });
``` ```
Creates a global auth store using Zustand. `create()` accepts a function that receives `set` (used to update state) and returns the initial store state and methods. Creates a global auth store using Zustand. `create()` accepts a function that receives `set` (used to update state) and returns the initial store state and methods.