refactor: move to tanstack router

This commit is contained in:
Prayag Prajapati committed 2024-05-15 10:14:42 +05:30
1 parent a4ea932153
commit 8f4051e124
136 files changed
+7063 -6127

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { IconButton } from "@mui/material";
import { useRouter } from "@tanstack/react-router";
import React from "react";
export default function BackButton() {
const { history } = useRouter();
const handleClick = () => {
history.back();
};
return (
<IconButton onClick={handleClick}>
<span className="material-symbols-rounded">arrow_back</span>
</IconButton>
);
}