Skip to content

Commit

Permalink
feat(ui): refine invitation-table and user-table (#1016)
Browse files Browse the repository at this point in the history
* feat(ui): refine invitation-table and user-table

* update-ui
  • Loading branch information
wsxiaoys authored Dec 10, 2023
1 parent 3484214 commit 5af19dc
Show file tree
Hide file tree
Showing 33 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function InvitationTable() {
<TableRow>
<TableHead className="w-[25%]">Invitee</TableHead>
<TableHead className="w-[45%]">Created</TableHead>
<TableHead>Actions</TableHead>
<TableHead></TableHead>
</TableRow>
</TableHeader>
)}
Expand All @@ -69,7 +69,7 @@ export default function InvitationTable() {
<TableRow key={i}>
<TableCell>{x.email}</TableCell>
<TableCell>{moment.utc(x.createdAt).fromNow()}</TableCell>
<TableCell>
<TableCell className="text-center">
<CopyButton value={link} />
<Button
size="icon"
Expand Down
6 changes: 3 additions & 3 deletions ee/tabby-ui/app/(dashboard)/team/components/user-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ export default function UsersTable() {
<TableRow>
<TableHead className="w-[25%]">Email</TableHead>
<TableHead className="w-[45%]">Joined</TableHead>
<TableHead>Role</TableHead>
<TableHead className="text-center">Level</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{users.map((x, i) => (
<TableRow key={i}>
<TableCell>{x.email}</TableCell>
<TableCell>{moment.utc(x.createdAt).fromNow()}</TableCell>
<TableCell>
<TableCell className="text-center">
{x.isAdmin ? (
<Badge>OWNER</Badge>
<Badge>ADMIN</Badge>
) : (
<Badge variant="secondary">MEMBER</Badge>
)}
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-webserver/ui/404.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5af19dc

Please sign in to comment.