feat: restructure routing and layouts for admin and news sections, update cookie paths
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
Outlet,
|
||||
Scripts,
|
||||
ScrollRestoration,
|
||||
type ShouldRevalidateFunctionArgs,
|
||||
} from 'react-router'
|
||||
|
||||
import type { Route } from './+types/root'
|
||||
@@ -37,16 +36,6 @@ export const meta = ({ location }: Route.MetaArgs) => {
|
||||
]
|
||||
}
|
||||
|
||||
export const shouldRevalidate = ({
|
||||
actionResult,
|
||||
defaultShouldRevalidate,
|
||||
}: ShouldRevalidateFunctionArgs) => {
|
||||
if (actionResult?.success) {
|
||||
return true
|
||||
}
|
||||
return defaultShouldRevalidate
|
||||
}
|
||||
|
||||
export const Layout = ({ children }: { children: ReactNode }) => {
|
||||
return (
|
||||
<html lang="en">
|
||||
|
||||
Reference in New Issue
Block a user