wip
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { useNavigation } from "react-router";
|
||||
import { Link } from "react-router";
|
||||
import { Outlet } from "react-router";
|
||||
import { useNavigation } from 'react-router'
|
||||
import { Link } from 'react-router'
|
||||
import { Outlet } from 'react-router'
|
||||
|
||||
export default function Layout() {
|
||||
const navigation = useNavigation();
|
||||
const isNavigating = Boolean(navigation.location);
|
||||
const navigation = useNavigation()
|
||||
const isNavigating = Boolean(navigation.location)
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -18,5 +18,5 @@ export default function Layout() {
|
||||
|
||||
{isNavigating ? <>Loading...</> : <Outlet />}
|
||||
</>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user