refactor: code refactor

This commit is contained in:
Andrea
2023-03-14 13:54:52 +01:00
parent 6d3a6c2155
commit 84ed5530ca
19 changed files with 1666 additions and 1023 deletions

View File

@@ -0,0 +1,6 @@
import { useMatches } from "@remix-run/react";
export function useMatch() {
const matches = useMatches();
return matches[matches.length - 1];
}