feat: change anchor to onClick for ResistantRow
parent
1641ab3f56
commit
6ef7c664ac
|
@ -1,14 +1,16 @@
|
|||
import {Link} from "react-router-dom";
|
||||
import {Resistant} from "../Resistant";
|
||||
import {useNavigate} from "react-router";
|
||||
|
||||
interface Props {
|
||||
resistant: Resistant
|
||||
}
|
||||
|
||||
export const ResistantRow = ({resistant}: Props) => {
|
||||
const navigate = useNavigate()
|
||||
|
||||
return (
|
||||
<Link to={resistant.noms}>
|
||||
<div className="row sqs-row">
|
||||
<>
|
||||
<div className="row sqs-row" onClick={() => navigate(resistant.noms)}>
|
||||
<div className="col sqs-col-4 span-4" id="yui_3_17_2_1_1674987238932_138">
|
||||
<div className="sqs-block image-block sqs-block-image sqs-text-ready" data-block-type="5"
|
||||
id="block-yui_3_17_2_1_1662985860031_30104">
|
||||
|
@ -95,6 +97,6 @@ export const ResistantRow = ({resistant}: Props) => {
|
|||
<hr/>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue