Skip to content

armgit / ente

Public Imported from GitHub
0

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

Simplify

Manav Rathi0690a32d597a
diff --git a/web/packages/new/photos/components/gallery/index.tsx b/web/packages/new/photos/components/gallery/index.tsx
index 3ab4af51bc..558213ca9b 100644
--- a/web/packages/new/photos/components/gallery/index.tsx
+++ b/web/packages/new/photos/components/gallery/index.tsx
@@ -77,7 +77,7 @@ export const GalleryEmptyState: React.FC<GalleryEmptyStateProps> = ({
isUploadInProgress,
onUpload,
}) => (
- <Wrapper>
+ <Stack sx={{ alignItems: "center" }}>
<Stack sx={{ flex: "none", paddingBlock: "12px 32px" }}>
<VerticallyCentered sx={{ flex: "none" }}>
<Typography
@@ -132,16 +132,9 @@ export const GalleryEmptyState: React.FC<GalleryEmptyStateProps> = ({
</FlexWrapper>
</Button>
</VerticallyCentered>
- </Wrapper>
+ </Stack>
);
-const Wrapper = styled("div")`
- display: flex;
- flex-direction: column;
- align-items: center;
- text-align: center;
-`;
-
/**
* Prevent the image from being selected _and_ dragged, since dragging it
* triggers the our dropdown selector overlay.