Rename frontend directory (#472)

* Rename directory

* Cleanup

* Recover lost images

* remove lint
This commit is contained in:
Andrey Pokhilko
2023-09-26 10:04:44 +01:00
committed by GitHub
parent 133eef6745
commit dd7aca70ff
146 changed files with 595 additions and 309 deletions

View File

@@ -0,0 +1,13 @@
import { useLocation, useNavigate } from "react-router-dom";
const useNavigateWithSearchParams = () => {
const navigate = useNavigate();
const { search } = useLocation();
const navigateWithSearchParams = (url: string, ...restArgs: any[]) => {
navigate(url + search, ...restArgs);
};
return navigateWithSearchParams;
};
export default useNavigateWithSearchParams;