refactor(footer): use useAtomValue for version

This commit is contained in:
jialin
2026-07-07 20:37:39 +08:00
committed by jialin
parent e75beb7324
commit 71840cfc8f
+2 -2
View File
@@ -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({