From 4dda81092dcac38af0886d1b421a2db27e304281 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 3 Mar 2024 13:53:29 +0000 Subject: [PATCH] add Loading to AllDevices --- website/src/pages/admin/AllDevices.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/src/pages/admin/AllDevices.tsx b/website/src/pages/admin/AllDevices.tsx index cafd6db8..8fba4436 100644 --- a/website/src/pages/admin/AllDevices.tsx +++ b/website/src/pages/admin/AllDevices.tsx @@ -18,6 +18,7 @@ import { Device } from '../../sdk/devices_pb'; import { User } from '../../sdk/users_pb'; import { lastSeen, lazy } from '../../Util'; import numeral from "numeral"; +import { Loading } from '../../components/Loading'; export const AllDevices = observer(class AllDevices extends React.Component { users = lazy(async () => { @@ -54,7 +55,7 @@ export const AllDevices = observer(class AllDevices extends React.Component { render() { if (!this.devices.current || !this.users.current) { - return

loading...

; + return ; } const users = this.users.current;