mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
refactor(ui): Extract device UI path generation to standalone function (#203)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { redirect } from "react-router-dom";
|
||||
import { LoaderFunctionArgs, redirect } from "react-router-dom";
|
||||
import { getDeviceUiPath } from "../hooks/useAppNavigation";
|
||||
|
||||
export function loader() {
|
||||
return redirect("/settings/general");
|
||||
export function loader({ params }: LoaderFunctionArgs) {
|
||||
return redirect(getDeviceUiPath("/settings/general", params.id));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user