Skip to content

Commit

Permalink
add Loading to AllDevices
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii committed Mar 3, 2024
1 parent 40f2bd8 commit 4dda810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/pages/admin/AllDevices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -54,7 +55,7 @@ export const AllDevices = observer(class AllDevices extends React.Component {

render() {
if (!this.devices.current || !this.users.current) {
return <p>loading...</p>;
return <Loading />;
}

const users = this.users.current;
Expand Down

0 comments on commit 4dda810

Please sign in to comment.