From 4ccfaea97324075b2ef10183261260ca805a4208 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sat, 30 Apr 2022 15:22:06 +0100 Subject: [PATCH] feat: add a preloader for members list --- src/pages/settings/server/Members.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/settings/server/Members.tsx b/src/pages/settings/server/Members.tsx index 28c2d5eb..0bf5e96a 100644 --- a/src/pages/settings/server/Members.tsx +++ b/src/pages/settings/server/Members.tsx @@ -16,6 +16,7 @@ import Checkbox from "../../../components/ui/Checkbox"; import IconButton from "../../../components/ui/IconButton"; import InputBox from "../../../components/ui/InputBox"; import Overline from "../../../components/ui/Overline"; +import { Preloader } from "@revoltchat/ui"; interface InnerProps { member: Member; @@ -124,7 +125,7 @@ export const Members = ({ server }: Props) => { contrast />
{data?.length ?? 0} Members
- {members && ( + {members ? (
{ )} />
+ ) : ( + )} );