refactor: flatten routes

This commit is contained in:
Andrea 2024-09-25 09:26:35 +02:00
parent e14a7ffb3d
commit 888f6c3b01
No known key found for this signature in database
GPG Key ID: 4594610B9C8F91C5
5 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
import { useLoaderData } from "@remix-run/react";
import { EmptyState } from "~/components/EmptyState";
import { PostPreview } from "~/components/PostPreview";
import { Title } from "~/components/Title";
import { findPosts } from "~/utils/posts.server";
import { EmptyState } from "./EmptyState";
import { PostPreview } from "./PostPreview";
export const handle = {
to: "/",

View File

@ -1,7 +1,7 @@
import { Link } from "@remix-run/react";
import { Outlet } from "react-router-dom";
import { LinkWrapper } from "~/components/LinkWrapper";
import { useMatch } from "./useMatch";
import { useMatch } from "~/hooks/useMatch";
export default function () {
const { handle } = useMatch();