refactor(ui): Add TODO comments for future URL-based state migration

This commit is contained in:
Adam Shiervani 2025-02-26 01:05:10 +01:00
parent 0588a35fd0
commit ee4791d9f7
4 changed files with 5 additions and 4 deletions

View File

@ -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("..");
}}

View File

@ -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("..")} />;
}

View File

@ -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>();

View File

@ -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}
/>