From 7bd18a41bc3698f7831743174979ab9efc6c167f Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sun, 10 Dec 2023 16:07:10 +0800 Subject: [PATCH] feat(ui): adjust team page layout (#1007) * feat(ui): display green check button after copy success * feat(ui): set max width for getting started page * feat(ui): adjust team management layout * adjust team table layout --- .../components/create-invitation-form.tsx | 2 +- .../team/components/invitation-table.tsx | 22 +++++++++---------- .../app/(dashboard)/team/components/team.tsx | 7 +++--- .../team/components/user-table.tsx | 17 +++++++++----- ee/tabby-ui/components/copy-button.tsx | 2 +- 5 files changed, 29 insertions(+), 21 deletions(-) diff --git a/ee/tabby-ui/app/(dashboard)/team/components/create-invitation-form.tsx b/ee/tabby-ui/app/(dashboard)/team/components/create-invitation-form.tsx index d91607b..00f27c9 100644 --- a/ee/tabby-ui/app/(dashboard)/team/components/create-invitation-form.tsx +++ b/ee/tabby-ui/app/(dashboard)/team/components/create-invitation-form.tsx @@ -47,7 +47,7 @@ export default function CreateInvitationForm({ return (
-
+
- - - Invitee - Created - - - + {invitations.length > 0 && ( + + + Invitee + Created + Actions + + + )} {invitations.map((x, i) => { const link = `${origin}/auth/signup?invitationCode=${x.code}` return ( - - {x.email} - + {x.email} {moment.utc(x.createdAt).fromNow()} - +