Spaces:
Sleeping
Sleeping
Update web/src/App.tsx
Browse files- web/src/App.tsx +4 -0
web/src/App.tsx
CHANGED
|
@@ -47,6 +47,7 @@ export interface Message {
|
|
| 47 |
export interface User {
|
| 48 |
name: string;
|
| 49 |
email: string;
|
|
|
|
| 50 |
}
|
| 51 |
|
| 52 |
export interface GroupMember {
|
|
@@ -1486,6 +1487,9 @@ function App() {
|
|
| 1486 |
onReviewActivity={handleReviewActivity}
|
| 1487 |
currentUserId={user?.email}
|
| 1488 |
docType={"Syllabus"}
|
|
|
|
|
|
|
|
|
|
| 1489 |
/>
|
| 1490 |
</div>
|
| 1491 |
</main>
|
|
|
|
| 47 |
export interface User {
|
| 48 |
name: string;
|
| 49 |
email: string;
|
| 50 |
+
bio?: string;
|
| 51 |
}
|
| 52 |
|
| 53 |
export interface GroupMember {
|
|
|
|
| 1487 |
onReviewActivity={handleReviewActivity}
|
| 1488 |
currentUserId={user?.email}
|
| 1489 |
docType={"Syllabus"}
|
| 1490 |
+
onProfileBioUpdate={(bio) => {
|
| 1491 |
+
setUser((prev) => (prev ? { ...prev, bio } : prev));
|
| 1492 |
+
}}
|
| 1493 |
/>
|
| 1494 |
</div>
|
| 1495 |
</main>
|