Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unused

Manav Rathicd73a736f4fa
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector/plans/button.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector/plans/button.tsx
deleted file mode 100644
index f6ac71ac10..0000000000
--- a/web/apps/photos/src/components/pages/gallery/PlanSelector/plans/button.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-import { SpaceBetweenFlex } from "@ente/shared/components/Container";
-import ChevronRight from "@mui/icons-material/ChevronRight";
-import Done from "@mui/icons-material/Done";
-import { Box, Button } from "@mui/material";
-import { t } from "i18next";
-export function PlanIconButton({
- current,
- onClick,
-}: {
- current: boolean;
- onClick: () => void;
-}) {
- return (
- <Box mt={6}>
- {current ? (
- <CurrentPlanTileButton />
- ) : (
- <NormalPlanTileButton onClick={onClick} />
- )}
- </Box>
- );
-}
-
-function CurrentPlanTileButton() {
- return (
- <Button
- color="accent"
- disabled={true}
- sx={(theme) => ({
- "&&": {
- color: theme.colors.accent.A500,
- borderColor: theme.colors.accent.A500,
- },
- })}
- fullWidth
- onClick={() => null}
- variant={"outlined"}
- >
- <SpaceBetweenFlex>
- {t("active")}
- <Done />
- </SpaceBetweenFlex>
- </Button>
- );
-}
-
-function NormalPlanTileButton({ onClick }) {
- return (
- <Button
- color="accent"
- sx={(theme) => ({
- border: `1px solid ${theme.colors.accent.A500}`,
- })}
- fullWidth
- onClick={onClick}
- variant={"contained"}
- >
- <SpaceBetweenFlex>
- {t("SUBSCRIBE")}
- <ChevronRight />
- </SpaceBetweenFlex>
- </Button>
- );
-}