From b099d16a32aa178a178ae4a22bd694db238b58a0 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 8 Aug 2025 13:07:36 +0530 Subject: [PATCH] Screen outline --- web/apps/photos/src/components/Sidebar.tsx | 91 +++++++++++++++++++++- 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsx index 8fdf4c1697..a1b799a15f 100644 --- a/web/apps/photos/src/components/Sidebar.tsx +++ b/web/apps/photos/src/components/Sidebar.tsx @@ -777,6 +777,8 @@ const Preferences: React.FC = ({ onClose, onRootClose, }) => { + const { show: showDomainSettings, props: domainSettingsVisibilityProps } = + useModalVisibility(); const { show: showMapSettings, props: mapSettingsVisibilityProps } = useModalVisibility(); const { @@ -835,7 +837,7 @@ const Preferences: React.FC = ({ } - onClick={showMapSettings} + onClick={showDomainSettings} /> } @@ -857,6 +859,10 @@ const Preferences: React.FC = ({ )} + { ); }; +const DomainSettings: React.FC = ({ + open, + onClose, + onRootClose, +}) => { + // const { showMiniDialog } = useBaseContext(); + + // const { mapEnabled } = useSettingsSnapshot(); + + // const confirmToggle = useCallback( + // () => + // showMiniDialog( + // mapEnabled + // ? confirmDisableMapsDialogAttributes(() => + // updateMapEnabled(false), + // ) + // : confirmEnableMapsDialogAttributes(() => + // updateMapEnabled(true), + // ), + // ), + // [showMiniDialog, mapEnabled], + // ); + + const handleRootClose = () => { + onClose(); + onRootClose(); + }; + + return ( + + + + + + + + + + + + + + + + ); +}; + +interface DomainSectionProps { + title: string; + ordinal: string; +} + +const DomainItem: React.FC> = ({ + title, + ordinal, + children, +}) => ( + + + {title} + + {ordinal} + + + {children} + +); + const MapSettings: React.FC = ({ open, onClose,