Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 82fc7c8

Browse files
author
Tian, ShaoQin
committed
add Loading for account
1 parent 22ad5d0 commit 82fc7c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎client/src/components/PrivateRoute.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const PrivateRouteComponent = ({route, authenticated, user, loading, ...rest}) =
1515
}
1616
}}/>
1717
)
18+
} else if (route.private && loading) {
19+
return (<div>Loading account info</div>)
1820
} else {
1921
return (
2022
<ErrorBoundary>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /