Skip to content

Commit

Permalink
fix(routes.tsx): replace OtherError component with NotFoundError comp…
Browse files Browse the repository at this point in the history
…onent for consistency

The OtherError component is replaced with the NotFoundError component to maintain consistency with the error handling components used in the application.
  • Loading branch information
ktun95 committed Nov 20, 2024
1 parent 9bcca87 commit 7cf61c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dicty-frontpage/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
privateRoutes,
buildMergedRoutes,
} from "@dictybase/auth"
import { OtherError } from "@dictybase/ui-common"
import { NotFoundError } from "@dictybase/ui-common"

const dynamicRoutes: dynamicRoutesProperties = import.meta.glob(
"/src/pages/**/**/*.tsx",
Expand All @@ -25,7 +25,7 @@ const createRouteDefinition = (allRoutes: dynamicRoutesProperties) =>
bind("privateR", () => pipe(allRoutes, privateRoutes, of)),
Olet("mergedR", buildMergedRoutes),
Olet("finalR", ({ mergedR }) => [
{ errorElement: <OtherError />, children: mergedR },
{ errorElement: <NotFoundError />, children: mergedR },
]),
match(
() => [] as Array<RouteObject>,
Expand Down

0 comments on commit 7cf61c5

Please sign in to comment.