Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unnecessary boxes

Manav Rathif164df75fcfa
diff --git a/web/apps/photos/src/components/Sidebar/MapSetting.tsx b/web/apps/photos/src/components/Sidebar/MapSetting.tsx
index 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.tsx
index 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>
+ </>
);
};