feat: add onclick event to login icon in footer component

This commit is contained in:
kangfenmao 2025-01-20 12:57:26 +08:00
parent c04fd62bec
commit d850fd315a

View File

@ -13,9 +13,9 @@ const Footer: FC<FooterProps> = ({ route, onExit }) => {
const { t } = useTranslation() const { t } = useTranslation()
return ( return (
<WindowFooter onClick={() => onExit()}> <WindowFooter>
<FooterText className="nodrag"> <FooterText className="nodrag">
<Tag bordered={false} icon={<LoginOutlined />}> <Tag bordered={false} icon={<LoginOutlined />} onClick={() => onExit()}>
{t('miniwindow.footer.esc', { {t('miniwindow.footer.esc', {
action: route === 'home' ? t('miniwindow.footer.esc_close') : t('miniwindow.footer.esc_back') action: route === 'home' ? t('miniwindow.footer.esc_close') : t('miniwindow.footer.esc_back')
})} })}