Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(Personal): Replace `Button` link with `Link`

haitaoo1799f9e7db1c
diff --git a/ui/src/pages/Users/Personal/index.tsx b/ui/src/pages/Users/Personal/index.tsx
index 45ce56bf..41033a05 100644
--- a/ui/src/pages/Users/Personal/index.tsx
+++ b/ui/src/pages/Users/Personal/index.tsx
@@ -1,7 +1,7 @@
import { FC } from 'react';
-import { Container, Row, Col, Button } from 'react-bootstrap';
+import { Container, Row, Col } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
-import { useParams, useSearchParams } from 'react-router-dom';
+import { useParams, useSearchParams, Link } from 'react-router-dom';
import { usePageTags } from '@/hooks';
import { Pagination, FormatTime, Empty } from '@/components';
@@ -73,12 +73,11 @@ const Personal: FC = () => {
className="d-flex justify-content-start justify-content-md-end">
{isSelf && (
<div className="mb-3">
- <Button
- variant="outline-secondary"
- href="/users/settings/profile"
- className="btn">
+ <Link
+ className="btn btn-outline-secondary"
+ to="/users/settings/profile">
{t('edit_profile')}
- </Button>
+ </Link>
</div>
)}
</Col>