From 3847fd189695a3b31ad89b0d2a3c879dae9da203 Mon Sep 17 00:00:00 2001 From: Ardeman Date: Wed, 19 Mar 2025 18:53:44 +0800 Subject: [PATCH] refactor: remove unused HydrateFallback component to streamline code --- app/routes/_news._index.tsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/routes/_news._index.tsx b/app/routes/_news._index.tsx index c2d806a..6ab4d18 100644 --- a/app/routes/_news._index.tsx +++ b/app/routes/_news._index.tsx @@ -1,4 +1,3 @@ -import { ArrowPathIcon } from '@heroicons/react/24/solid' import { isRouteErrorResponse } from 'react-router' import { getCategories } from '~/apis/common/get-categories' @@ -54,24 +53,6 @@ export const loader = async ({}: Route.LoaderArgs) => { } } -export const HydrateFallback = () => { - return ( - -
-

- Loading... -

-

- Please wait while we load the content. -

-
-
- -
-
- ) -} - export const ErrorBoundary = ({ error }: Route.ErrorBoundaryProps) => { let message = 'Oops!' let details = 'An unexpected error occurred.'