Skip to content

armgit / ente

Public Imported from GitHub
0

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

Inline

Manav Rathi334587474f5d
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard/backgroundOverlay.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard/backgroundOverlay.tsx
index eb9c85f510..e69de29bb2 100644
--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard/backgroundOverlay.tsx
+++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard/backgroundOverlay.tsx
@@ -1,11 +0,0 @@
-export function BackgroundOverlay() {
- return (
- <img
- style={{ aspectRatio: "2/1" }}
- width="100%"
- src="/images/subscription-card-background/1x.png"
- srcSet="/images/subscription-card-background/2x.png 2x,
- /images/subscription-card-background/3x.png 3x"
- />
- );
-}
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard/clickOverlay.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard/clickOverlay.tsx
deleted file mode 100644
index 7890558089..0000000000
--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard/clickOverlay.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import { FlexWrapper, Overlay } from "@ente/shared/components/Container";
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
-export function ClickOverlay({ onClick }) {
- return (
- <Overlay display="flex">
- <FlexWrapper
- onClick={onClick}
- justifyContent={"flex-end"}
- sx={{ cursor: "pointer" }}
- >
- <ChevronRightIcon />
- </FlexWrapper>
- </Overlay>
- );
-}
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard/index.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard/index.tsx
index 848792817a..514c43df81 100644
--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard/index.tsx
+++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard/index.tsx
@@ -1,8 +1,7 @@
+import { FlexWrapper, Overlay } from "@ente/shared/components/Container";
+import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import { Box, Skeleton } from "@mui/material";
import { UserDetails } from "types/user";
-import { BackgroundOverlay } from "./backgroundOverlay";
-import { ClickOverlay } from "./clickOverlay";
-
import { SubscriptionCardContentOverlay } from "./contentOverlay";
const SUBSCRIPTION_CARD_SIZE = 152;
@@ -32,3 +31,29 @@ export default function SubscriptionCard({ userDetails, onClick }: Iprops) {
</Box>
);
}
+
+function BackgroundOverlay() {
+ return (
+ <img
+ style={{ aspectRatio: "2/1" }}
+ width="100%"
+ src="/images/subscription-card-background/1x.png"
+ srcSet="/images/subscription-card-background/2x.png 2x,
+ /images/subscription-card-background/3x.png 3x"
+ />
+ );
+}
+
+function ClickOverlay({ onClick }) {
+ return (
+ <Overlay display="flex">
+ <FlexWrapper
+ onClick={onClick}
+ justifyContent={"flex-end"}
+ sx={{ cursor: "pointer" }}
+ >
+ <ChevronRightIcon />
+ </FlexWrapper>
+ </Overlay>
+ );
+}
diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionStatus/index.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionStatus/index.tsx
deleted file mode 100644
index e69de29bb2..0000000000