From 7e5577ecd7430ac738af0dfcfbe3d95739be7e81 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 1 Aug 2024 20:52:45 +0530 Subject: [PATCH] Inline --- .../PlanSelector/manageSubscription/button.tsx | 11 ----------- .../gallery/PlanSelector/manageSubscription/index.tsx | 11 +++++++++-- 2 files changed, 9 insertions(+), 13 deletions(-) delete mode 100644 web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/button.tsx diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/button.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/button.tsx deleted file mode 100644 index f1aca561ff..0000000000 --- a/web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/button.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { FluidContainer } from "@ente/shared/components/Container"; -import ChevronRight from "@mui/icons-material/ChevronRight"; -import { Button, ButtonProps } from "@mui/material"; - -const ManageSubscriptionButton = ({ children, ...props }: ButtonProps) => ( - -); - -export default ManageSubscriptionButton; diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/index.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/index.tsx index dde76f89bd..ef3dcfd521 100644 --- a/web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/index.tsx +++ b/web/apps/photos/src/components/pages/gallery/PlanSelector/manageSubscription/index.tsx @@ -1,4 +1,6 @@ -import { Stack } from "@mui/material"; +import { FluidContainer } from "@ente/shared/components/Container"; +import ChevronRight from "@mui/icons-material/ChevronRight"; +import { Button, ButtonProps, Stack } from "@mui/material"; import { t } from "i18next"; import { AppContext } from "pages/_app"; import { useContext } from "react"; @@ -15,7 +17,6 @@ import { manageFamilyMethod, updatePaymentMethod, } from "utils/billing"; -import ManageSubscriptionButton from "./button"; interface Iprops { subscription: Subscription; @@ -135,3 +136,9 @@ function StripeSubscriptionOptions({ ); } + +const ManageSubscriptionButton = ({ children, ...props }: ButtonProps) => ( + +);