From 0685e44ab10c85a54463bdbe5f3a0a75412d7fe1 Mon Sep 17 00:00:00 2001 From: Delilah <23665803+goplayoutside3@users.noreply.github.com> Date: Thu, 6 Jun 2024 21:07:33 -0500 Subject: [PATCH] import UserHome into lib-user dev App --- packages/lib-user/dev/components/App/App.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/lib-user/dev/components/App/App.js b/packages/lib-user/dev/components/App/App.js index e6be895c39..374a164169 100644 --- a/packages/lib-user/dev/components/App/App.js +++ b/packages/lib-user/dev/components/App/App.js @@ -9,6 +9,7 @@ import { Contributors, GroupStats, MyGroups, + UserHome, UserStats } from '@components' @@ -31,7 +32,7 @@ function App({ useEffect(() => { async function checkUserSession() { setLoading(true) - + try { const user = await auth.checkCurrent() setUser(user) @@ -41,7 +42,7 @@ function App({ setLoading(false) } } - + auth.listen('change', checkUserSession) return function () { @@ -93,13 +94,14 @@ function App({ + {user?.id ? : null} ) if (groups) { const subpaths = groups.split('/') const groupId = subpaths[0] || '' - + if (subpaths[0] === '[user_group_id]') { content =

In the url query param ?groups=, please replace [user_group_id] with a user group id.

} else if (subpaths[1] === 'contributors') { @@ -185,7 +187,7 @@ function App({ /> - {loading ? + {loading ?

Loading...

: (
{content}