mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 02:21:51 +08:00
fix: add hint in sinout button, fixed #790
This commit is contained in:
@@ -5,7 +5,7 @@ import { IconButton } from '@/ui/button';
|
|||||||
import { useAppState } from '@/providers/app-state-provider';
|
import { useAppState } from '@/providers/app-state-provider';
|
||||||
import { StyledFooter, StyleUserInfo, StyleSignIn } from './styles';
|
import { StyledFooter, StyleUserInfo, StyleSignIn } from './styles';
|
||||||
import { useTranslation } from '@affine/i18n';
|
import { useTranslation } from '@affine/i18n';
|
||||||
|
import { Tooltip } from '@/ui/tooltip';
|
||||||
export const Footer = ({
|
export const Footer = ({
|
||||||
onLogin,
|
onLogin,
|
||||||
onLogout,
|
onLogout,
|
||||||
@@ -31,13 +31,15 @@ export const Footer = ({
|
|||||||
<p>{user.email}</p>
|
<p>{user.email}</p>
|
||||||
</StyleUserInfo>
|
</StyleUserInfo>
|
||||||
</FlexWrapper>
|
</FlexWrapper>
|
||||||
<IconButton
|
<Tooltip content={t('Sign out')} disablePortal={true}>
|
||||||
onClick={() => {
|
<IconButton
|
||||||
onLogout();
|
onClick={() => {
|
||||||
}}
|
onLogout();
|
||||||
>
|
}}
|
||||||
<LogOutIcon />
|
>
|
||||||
</IconButton>
|
<LogOutIcon />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user