Skip to content

Commit

Permalink
fix login redirect for app router
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Dec 31, 2024
1 parent b20e167 commit ea19afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Routers/AppRouter.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import careConfig from "@careConfig";
import { useRedirect, useRoutes } from "raviger";
import { Redirect, useRedirect, useRoutes } from "raviger";

import IconIndex from "@/CAREUI/icons/Index";

Expand Down Expand Up @@ -72,6 +72,7 @@ const Routes: AppRoutes = {
"/questionnaire/:id": ({ id }) => <QuestionnaireShow id={id} />,
"/apps": () => <PlugConfigList />,
"/apps/plug-configs/:slug": ({ slug }) => <PlugConfigEdit slug={slug} />,
"/login": () => <Redirect to="/" />,
};

export default function AppRouter() {
Expand Down

0 comments on commit ea19afa

Please sign in to comment.