refactor: move to tanstack router
This commit is contained in:
1 parent
a4ea932153
commit
522621ed69
136 files changed
+7063
-6127
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user