refactor: move to tanstack router

This commit is contained in:
Prayag Prajapati committed 2024-05-29 18:10:22 +05:30
1 parent a4ea932153
commit 522621ed69
136 files changed
+7063 -6127

No files matched your search

+2 -3
View File
@@ -1,16 +1,15 @@
import Typography from "@mui/material/Typography";
import { useNavigate } from "react-router-dom";
import "./textLink.scss";
const TextLink = ({ children, location, variant, otherProps }) => {
const navigate = useNavigate();
// const navigate = useNavigate();
return (
<Typography
variant={variant}
className="link flex"
onClick={() => navigate(location)}
// onClick={() => navigate(location)}
{...otherProps}
>
{children}