mirror of https://github.com/jetkvm/kvm.git
refactor(ui): Add TODO comments for future URL-based state migration
This commit is contained in:
parent
0588a35fd0
commit
ee4791d9f7
|
@ -15,7 +15,6 @@ export default function LocalAuthRoute() {
|
|||
<GridCard cardClassName="relative mx-auto max-w-md text-left pointer-events-auto">
|
||||
{/* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */}
|
||||
<Dialog
|
||||
// Effectively fetch the loaders from devices.$id.tsx to get new settings
|
||||
onClose={open => {
|
||||
if (!open) navigate("..");
|
||||
}}
|
||||
|
|
|
@ -39,6 +39,9 @@ import { useNavigate } from "react-router-dom";
|
|||
|
||||
export default function MountRoute() {
|
||||
const navigate = useNavigate();
|
||||
{
|
||||
/* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */
|
||||
}
|
||||
return <Dialog onClose={() => navigate("..")} />;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import LogoWhite from "@/assets/logo-white.svg";
|
|||
interface ContextType {
|
||||
connectWebRTC: () => Promise<void>;
|
||||
}
|
||||
/* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */
|
||||
|
||||
export default function OtherSessionRoute() {
|
||||
const outletContext = useOutletContext<ContextType>();
|
||||
|
|
|
@ -25,9 +25,7 @@ export default function UpdateRoute() {
|
|||
{/* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */}
|
||||
<Dialog
|
||||
setOpen={open => {
|
||||
if (!open) {
|
||||
navigate("..");
|
||||
}
|
||||
if (!open) navigate("..");
|
||||
}}
|
||||
onConfirmUpdate={onConfirmUpdate}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue