π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove unnecessary boxes
Manav Rathif164df75fcfa
diff --git a/web/apps/photos/src/components/Sidebar/MapSetting.tsx b/web/apps/photos/src/components/Sidebar/MapSetting.tsxindex 9b535d9eae..c7098ab4f8 100644--- a/web/apps/photos/src/components/Sidebar/MapSetting.tsx+++ b/web/apps/photos/src/components/Sidebar/MapSetting.tsx@@ -106,31 +106,24 @@ const ModifyMapEnabled = ({ open, onClose, onRootClose, mapEnabled }) => {};return (- <Box>- <NestedSidebarDrawer- {...{ open, onClose }}- onRootClose={handleRootClose}- slotProps={{- backdrop: {- sx: { "&&&": { backgroundColor: "transparent" } },- },- }}- >- {mapEnabled ? (- <DisableMap- onClose={onClose}- disableMap={disableMap}- onRootClose={handleRootClose}- />- ) : (- <EnableMap- onClose={onClose}- enableMap={enableMap}- onRootClose={handleRootClose}- />- )}- </NestedSidebarDrawer>- </Box>+ <NestedSidebarDrawer+ {...{ open, onClose }}+ onRootClose={handleRootClose}+ >+ {mapEnabled ? (+ <DisableMap+ onClose={onClose}+ disableMap={disableMap}+ onRootClose={handleRootClose}+ />+ ) : (+ <EnableMap+ onClose={onClose}+ enableMap={enableMap}+ onRootClose={handleRootClose}+ />+ )}+ </NestedSidebarDrawer>);};diff --git a/web/packages/new/photos/components/MLSettings.tsx b/web/packages/new/photos/components/MLSettings.tsxindex 3a053793a9..f93c5341a3 100644--- a/web/packages/new/photos/components/MLSettings.tsx+++ b/web/packages/new/photos/components/MLSettings.tsx@@ -62,7 +62,7 @@ export const MLSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({}return (- <Box>+ <><NestedSidebarDrawer{...{ open, onClose }}onRootClose={handleRootClose}@@ -83,7 +83,7 @@ export const MLSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({onRootClose={handleRootClose}onConsent={handleConsent}/>- </Box>+ </>);};