refactor: flatten routes
This commit is contained in:
parent
e14a7ffb3d
commit
888f6c3b01
@ -1,8 +1,8 @@
|
|||||||
import { useLoaderData } from "@remix-run/react";
|
import { useLoaderData } from "@remix-run/react";
|
||||||
|
import { EmptyState } from "~/components/EmptyState";
|
||||||
|
import { PostPreview } from "~/components/PostPreview";
|
||||||
import { Title } from "~/components/Title";
|
import { Title } from "~/components/Title";
|
||||||
import { findPosts } from "~/utils/posts.server";
|
import { findPosts } from "~/utils/posts.server";
|
||||||
import { EmptyState } from "./EmptyState";
|
|
||||||
import { PostPreview } from "./PostPreview";
|
|
||||||
|
|
||||||
export const handle = {
|
export const handle = {
|
||||||
to: "/",
|
to: "/",
|
@ -1,7 +1,7 @@
|
|||||||
import { Link } from "@remix-run/react";
|
import { Link } from "@remix-run/react";
|
||||||
import { Outlet } from "react-router-dom";
|
import { Outlet } from "react-router-dom";
|
||||||
import { LinkWrapper } from "~/components/LinkWrapper";
|
import { LinkWrapper } from "~/components/LinkWrapper";
|
||||||
import { useMatch } from "./useMatch";
|
import { useMatch } from "~/hooks/useMatch";
|
||||||
|
|
||||||
export default function () {
|
export default function () {
|
||||||
const { handle } = useMatch();
|
const { handle } = useMatch();
|
Loading…
x
Reference in New Issue
Block a user