mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-22 00:37:05 +08:00
fix(admin): adjust admin panel settings style (#11291)
Adjusted the style of some runtime configurations to match the new parameters. Adjusted the style of dialog and right sidebar. close AF-2411 AF-2412 AF-2413 AF-2422
This commit is contained in:
@@ -4,10 +4,14 @@ import {
|
||||
AvatarImage,
|
||||
} from '@affine/admin/components/ui/avatar';
|
||||
import { FeatureType } from '@affine/graphql';
|
||||
import { AccountIcon, LockIcon, UnlockIcon } from '@blocksuite/icons/rc';
|
||||
import {
|
||||
AccountIcon,
|
||||
EmailIcon,
|
||||
LockIcon,
|
||||
UnlockIcon,
|
||||
} from '@blocksuite/icons/rc';
|
||||
import type { ColumnDef } from '@tanstack/react-table';
|
||||
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||
import { MailIcon } from 'lucide-react';
|
||||
import {
|
||||
type Dispatch,
|
||||
type ReactNode,
|
||||
@@ -201,19 +205,29 @@ export const useColumns = ({
|
||||
color={cssVarV2('selfhost/icon/tertiary')}
|
||||
/>
|
||||
}
|
||||
IconFalse={<UnlockIcon fontSize={16} />}
|
||||
IconFalse={
|
||||
<UnlockIcon
|
||||
fontSize={16}
|
||||
color={cssVarV2('toast/iconState/error')}
|
||||
/>
|
||||
}
|
||||
textTrue="Password Set"
|
||||
textFalse="No Password"
|
||||
/>
|
||||
<StatusItem
|
||||
condition={user.emailVerified}
|
||||
IconTrue={
|
||||
<MailIcon
|
||||
size={16}
|
||||
<EmailIcon
|
||||
fontSize={16}
|
||||
color={cssVarV2('selfhost/icon/tertiary')}
|
||||
/>
|
||||
}
|
||||
IconFalse={<MailIcon size={16} />}
|
||||
IconFalse={
|
||||
<EmailIcon
|
||||
fontSize={16}
|
||||
color={cssVarV2('toast/iconState/error')}
|
||||
/>
|
||||
}
|
||||
textTrue="Email Verified"
|
||||
textFalse="Email Not Verified"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user