diff --git a/src/components/pages/Invites.tsx b/src/components/pages/Invites.tsx index 7f67c6c..f3f66b9 100644 --- a/src/components/pages/Invites.tsx +++ b/src/components/pages/Invites.tsx @@ -298,45 +298,65 @@ export default function Invites() { /> ) : ( - {invites.length - ? invites.map((invite) => ( - - - - - {invite.id} - - - - {invite.code} - {invite.used && <> (Used)</>} - - -
- - Created {relativeTime(new Date(invite.createdAt))} - -
-
- -
- {expireText(invite.expiresAt.toString())} -
-
-
-
- - handleCopy(invite)}> - - - openDeleteModal(invite)}> - - + {!ok && !invites.length && ( + <> + {[1, 2, 3].map((x) => ( + + ))} + + )} + + {invites.length && ok ? ( + invites.map((invite) => ( + + + + + {invite.id} + + + + {invite.code} + {invite.used && <> (Used)</>} + + +
+ Created {relativeTime(new Date(invite.createdAt))} +
+
+ +
+ {expireText(invite.expiresAt.toString())} +
+
-
- )) - : [1, 2, 3].map((x) => )} + + handleCopy(invite)}> + + + openDeleteModal(invite)}> + + + +
+
+ )) + ) : ( + <> +
+ +
+ +
+
+ Nothing here + Create some invites and they will show up here +
+
+
+ + )}
)}