Skip to content

Commit d153818

Browse files
committed
feat: implement dark mode for organization detail page
1 parent e022252 commit d153818

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

ui/dashboard/src/pages/organization-details/members/collection-layout/data-collection.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const useColumns = ({
4343
const accountName = joinName(firstName, lastName) || name;
4444

4545
return (
46-
<div className="flex gap-2">
46+
<div className="flex items-center gap-2">
4747
<AvatarImage
4848
image={avatarImageUrl || primaryAvatar}
4949
alt="member-avatar"
@@ -79,13 +79,13 @@ export const useColumns = ({
7979
id={email}
8080
name={email}
8181
maxLines={1}
82-
className="text-gray-700 no-underline cursor-default min-w-[300px]"
82+
className="text-gray-700 dark:text-dark-gray-300 no-underline cursor-default min-w-[300px]"
8383
/>
8484
}
8585
maxLines={1}
8686
/>
8787
{isPendingInvite && (
88-
<div className="py-[3px] px-2 w-fit rounded bg-accent-orange-50 typo-para-small text-accent-orange-500">
88+
<div className="py-[3px] px-2 w-fit rounded bg-accent-orange-50 dark:bg-dark-purple-100 typo-para-small text-accent-orange-500">
8989
{t('table:pending-invite')}
9090
</div>
9191
)}
@@ -101,7 +101,7 @@ export const useColumns = ({
101101
cell: ({ row }) => {
102102
const account = row.original;
103103
return (
104-
<div className="text-gray-700 typo-para-medium">
104+
<div className="text-gray-700 dark:text-dark-gray-300 typo-para-medium">
105105
{t(String(account.organizationRole).split('_')[1]?.toLowerCase())}
106106
</div>
107107
);
@@ -133,7 +133,7 @@ export const useColumns = ({
133133
cell: ({ row }) => {
134134
const account = row.original;
135135
return (
136-
<div className="text-gray-700 typo-para-medium">
136+
<div className="text-gray-700 dark:text-dark-gray-300 typo-para-medium">
137137
{account.environmentRoles.length}
138138
</div>
139139
);
@@ -146,7 +146,7 @@ export const useColumns = ({
146146
cell: ({ row }) => {
147147
const account = row.original;
148148
return (
149-
<div className="text-gray-700 typo-para-medium">
149+
<div className="text-gray-700 dark:text-dark-gray-300 typo-para-medium">
150150
{Number(account.lastSeen) === 0
151151
? t('never')
152152
: formatDateTime(account.lastSeen)}
@@ -165,7 +165,7 @@ export const useColumns = ({
165165
enableSorting: false,
166166
cell: () => {
167167
return (
168-
<button className="flex-center text-gray-600">
168+
<button className="flex-center text-gray-600 dark:text-dark-gray-200">
169169
<Icon icon={IconMoreHorizOutlined} size="sm" />
170170
</button>
171171
);

ui/dashboard/src/pages/organization-details/settings/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ const OrganizationSettings = ({
8585

8686
return (
8787
<div className="w-full px-6">
88-
<div className="p-5 shadow-card rounded-lg bg-white">
89-
<p className="text-gray-800 typo-head-bold-small">
88+
<div className="p-5 shadow-card rounded-lg bg-white dark:bg-dark-black-800 dark:shadow-dark-card">
89+
<p className="text-gray-800 dark:text-dark-gray-400 typo-head-bold-small">
9090
{t('form:general-info')}
9191
</p>
9292
<FormProvider {...form}>

0 commit comments

Comments
 (0)