Skip to content

Commit

Permalink
build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxrave committed Oct 17, 2023
1 parent baf67b8 commit 661c5c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/common/ErrorFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useRouteError } from "react-router-dom";
import { Button } from "@/shadcn/ui/button";
import { useAuth } from "@/hooks/useAuth";

export function ErrorFallback(props?: FallbackProps) {
export function ErrorFallback(props?: Partial<FallbackProps>) {
const routeError = useRouteError() as Error | null;
const { t } = useTranslation();
const { logout } = useAuth();
Expand Down
6 changes: 1 addition & 5 deletions packages/react/src/routes/router.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { Navigate, createBrowserRouter } from "react-router-dom";
import { Home } from "@/routes/home";
import { ChannelsOrg } from "./channelsOrg";
import { getDefaultStore } from "jotai";
import { orgAtom } from "@/store/org";
import { Frame } from "@/components/layout/Frame";
// import { Login } from "./login";
// import { Settings } from "./settings";
// import { About } from "./about";
// import { Channel } from "./channel";
import { NavigateToMusicdex } from "@/components/channel/NavigateToMusicdex";
import React from "react";
import { ErrorFallback } from "@/components/common/ErrorFallback";
Expand All @@ -17,6 +12,7 @@ const Settings = React.lazy(() => import("./settings"));
const About = React.lazy(() => import("./about"));
const Channel = React.lazy(() => import("./channel"));
const Kitchensink = React.lazy(() => import("@/Kitchensink"));
const ChannelsOrg = React.lazy(() => import("./channelsOrg"));

const store = getDefaultStore();

Expand Down

0 comments on commit 661c5c5

Please sign in to comment.