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

This commit is contained in:
haitaoo 2023-04-18 19:35:15 +08:00
parent 54b7de30a0
commit 1799f9e7db
1 changed files with 6 additions and 7 deletions

View File

@ -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>