Update Session07 Frontend.md
fixed minor bugs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
# Branching
|
||||
- [ ] Create the feature/authentication branch based on develop
|
||||
- [ ] Create the feature/authentication branch based on develop
|
||||
|
||||
# Adding Models
|
||||
Create three files inside this folder:
|
||||
@@ -61,7 +61,7 @@ import {create} from 'zustand';
|
||||
|
||||
interface User {
|
||||
phoneNumber: string;
|
||||
roles: any;
|
||||
roles: string[];
|
||||
}
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ This defines the overall structure of the authentication store:
|
||||
## 🔹 Zustand Store Definition
|
||||
|
||||
```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.
|
||||
|
||||
Reference in New Issue
Block a user