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 {Resistant} from "../Resistant";
|
||||||
|
import {useNavigate} from "react-router";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
resistant: Resistant
|
resistant: Resistant
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ResistantRow = ({resistant}: Props) => {
|
export const ResistantRow = ({resistant}: Props) => {
|
||||||
|
const navigate = useNavigate()
|
||||||
|
|
||||||
return (
|
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="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"
|
<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">
|
id="block-yui_3_17_2_1_1662985860031_30104">
|
||||||
|
@ -95,6 +97,6 @@ export const ResistantRow = ({resistant}: Props) => {
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue