mirror of https://gitee.com/answerdev/answer.git
fix(Personal): Replace `Button` link with `Link`
This commit is contained in:
parent
54b7de30a0
commit
1799f9e7db
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue