From 71840cfc8f4d47c73ea4a312c766eee205252f76 Mon Sep 17 00:00:00 2001 From: jialin Date: Tue, 7 Jul 2026 20:26:30 +0800 Subject: [PATCH] refactor(footer): use useAtomValue for version --- src/components/footer/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/footer/index.tsx b/src/components/footer/index.tsx index 125b5334..8d4c8ad1 100644 --- a/src/components/footer/index.tsx +++ b/src/components/footer/index.tsx @@ -4,7 +4,7 @@ import externalLinks from '@/constants/external-links'; import { useIntl } from '@umijs/max'; import { Button, Divider, Modal, Typography } from 'antd'; import { createStyles } from 'antd-style'; -import { useAtom } from 'jotai'; +import { useAtomValue } from 'jotai'; import styled from 'styled-components'; const CompanyWrapper = styled.div` @@ -35,7 +35,7 @@ const Footer: React.FC = () => { const intl = useIntl(); const [modal, contextHolder] = Modal.useModal(); const { styles } = useStyles(); - const [version] = useAtom(GPUStackVersionAtom); + const version = useAtomValue(GPUStackVersionAtom); const showVersion = () => { modal.info({