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">
|
<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. */}
|
{/* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */}
|
||||||
<Dialog
|
<Dialog
|
||||||
// Effectively fetch the loaders from devices.$id.tsx to get new settings
|
|
||||||
onClose={open => {
|
onClose={open => {
|
||||||
if (!open) navigate("..");
|
if (!open) navigate("..");
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -39,6 +39,9 @@ import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
export default function MountRoute() {
|
export default function MountRoute() {
|
||||||
const navigate = useNavigate();
|
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("..")} />;
|
return <Dialog onClose={() => navigate("..")} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ import LogoWhite from "@/assets/logo-white.svg";
|
||||||
interface ContextType {
|
interface ContextType {
|
||||||
connectWebRTC: () => Promise<void>;
|
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() {
|
export default function OtherSessionRoute() {
|
||||||
const outletContext = useOutletContext<ContextType>();
|
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. */}
|
{/* TODO: Migrate to using URLs instead of the global state. To simplify the refactoring, we'll keep the global state for now. */}
|
||||||
<Dialog
|
<Dialog
|
||||||
setOpen={open => {
|
setOpen={open => {
|
||||||
if (!open) {
|
if (!open) navigate("..");
|
||||||
navigate("..");
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
onConfirmUpdate={onConfirmUpdate}
|
onConfirmUpdate={onConfirmUpdate}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue