mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
GroupsPane: improve loading state
This commit is contained in:
parent
66f781fe51
commit
71251501e0
@ -136,6 +136,10 @@ export function GroupsPane(props: GroupsPaneProps) {
|
|||||||
const appPath = `${isShip ? '/ship/' : '/'}${host}/${name}`;
|
const appPath = `${isShip ? '/ship/' : '/'}${host}/${name}`;
|
||||||
const association = isShip ? associations.graph[appPath] : associations[appName][appPath];
|
const association = isShip ? associations.graph[appPath] : associations[appName][appPath];
|
||||||
const resourceUrl = `${baseUrl}/join/${app}${appPath}`;
|
const resourceUrl = `${baseUrl}/join/${app}${appPath}`;
|
||||||
|
|
||||||
|
if (!association) {
|
||||||
|
return <Loading />;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<Skeleton
|
<Skeleton
|
||||||
recentGroups={recentGroups}
|
recentGroups={recentGroups}
|
||||||
|
Loading…
Reference in New Issue
Block a user