From dd18a2175e722f562beae05cc02983537bd1df2c Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Thu, 18 Mar 2021 20:56:43 +0530 Subject: [PATCH] updated util function names --- src/components/Sidebar.tsx | 8 ++++---- src/pages/gallery/components/PlanSelector.tsx | 4 ++-- src/pages/gallery/index.tsx | 4 ++-- src/utils/billingUtil.ts | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 955276b77..62dc8c20b 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -15,8 +15,8 @@ import { convertBytesToGBs, getUserSubscription, isOnFreePlan, - isPlanCancelled, - hasRenewingPaidPlan, + isSubscriptionCancelled, + isSubscribed, } from 'utils/billingUtil'; enum Action { @@ -108,7 +108,7 @@ export default function Sidebar(props: Props) { constants.FREE_SUBSCRIPTION_INFO( subscription?.expiryTime ) - ) : isPlanCancelled(subscription) ? ( + ) : isSubscriptionCancelled(subscription) ? ( constants.RENEWAL_CANCELLED_SUBSCRIPTION_INFO( subscription?.expiryTime ) @@ -122,7 +122,7 @@ export default function Sidebar(props: Props) { )}
- {hasRenewingPaidPlan(subscription) ? ( + {isSubscribed(subscription) ? ( <>