feat: remember library filters #192
This commit is contained in:
8 files changed
+267
-198
No files matched your search
@@ -1,15 +1,16 @@
|
||||
import Typography from "@mui/material/Typography";
|
||||
|
||||
import "./textLink.scss";
|
||||
import { useNavigate } from "@tanstack/react-router";
|
||||
|
||||
const TextLink = ({ children, location, variant, otherProps }) => {
|
||||
// const navigate = useNavigate();
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<Typography
|
||||
variant={variant}
|
||||
className="link flex"
|
||||
// onClick={() => navigate(location)}
|
||||
onClick={() => navigate({ to: location })}
|
||||
{...otherProps}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in new issue
Block a user