mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
add generic loader to picker page
This commit is contained in:
parent
f9a2e7ac6b
commit
69a96fdd44
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import { Redirect } from '@reach/router';
|
import { Redirect } from '@reach/router';
|
||||||
|
import { GenericLoadingTemplate } from '@roleypoly/design-system/templates/generic-loading';
|
||||||
import { RolePickerTemplate } from '@roleypoly/design-system/templates/role-picker';
|
import { RolePickerTemplate } from '@roleypoly/design-system/templates/role-picker';
|
||||||
import { ServerSetupTemplate } from '@roleypoly/design-system/templates/server-setup';
|
import { ServerSetupTemplate } from '@roleypoly/design-system/templates/server-setup';
|
||||||
import { PresentableGuild, RoleUpdate, UserGuildPermissions } from '@roleypoly/types';
|
import { PresentableGuild, RoleUpdate, UserGuildPermissions } from '@roleypoly/types';
|
||||||
|
@ -48,7 +49,7 @@ const Picker = (props: PickerProps) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pickerData === null) {
|
if (pickerData === null) {
|
||||||
return <div>Loading...</div>;
|
return <GenericLoadingTemplate />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pickerData === false) {
|
if (pickerData === false) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue