mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(core): remove sidebar user avatar menu item's rightArrow icon (#6633)
This commit is contained in:
@@ -15,11 +15,7 @@ import {
|
|||||||
openSignOutModalAtom,
|
openSignOutModalAtom,
|
||||||
} from '@affine/core/atoms';
|
} from '@affine/core/atoms';
|
||||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||||
import {
|
import { AccountIcon, SignOutIcon } from '@blocksuite/icons';
|
||||||
AccountIcon,
|
|
||||||
ArrowRightSmallIcon,
|
|
||||||
SignOutIcon,
|
|
||||||
} from '@blocksuite/icons';
|
|
||||||
import { useLiveData, useService } from '@toeverything/infra';
|
import { useLiveData, useService } from '@toeverything/infra';
|
||||||
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
import { assignInlineVars } from '@vanilla-extract/dynamic';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
@@ -104,11 +100,6 @@ const AccountMenu = () => {
|
|||||||
<AccountIcon />
|
<AccountIcon />
|
||||||
</MenuIcon>
|
</MenuIcon>
|
||||||
}
|
}
|
||||||
endFix={
|
|
||||||
<MenuIcon position="end">
|
|
||||||
<ArrowRightSmallIcon />
|
|
||||||
</MenuIcon>
|
|
||||||
}
|
|
||||||
data-testid="workspace-modal-account-settings-option"
|
data-testid="workspace-modal-account-settings-option"
|
||||||
onClick={onOpenAccountSetting}
|
onClick={onOpenAccountSetting}
|
||||||
>
|
>
|
||||||
@@ -121,11 +112,6 @@ const AccountMenu = () => {
|
|||||||
<SignOutIcon />
|
<SignOutIcon />
|
||||||
</MenuIcon>
|
</MenuIcon>
|
||||||
}
|
}
|
||||||
endFix={
|
|
||||||
<MenuIcon position="end">
|
|
||||||
<ArrowRightSmallIcon />
|
|
||||||
</MenuIcon>
|
|
||||||
}
|
|
||||||
data-testid="workspace-modal-sign-out-option"
|
data-testid="workspace-modal-sign-out-option"
|
||||||
onClick={onOpenSignOutModal}
|
onClick={onOpenSignOutModal}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user