@@ -10,6 +10,7 @@ import { signOut } from 'next-auth/react' import styles from '#/app/layout/styles/styles.module.css' import { useAppSelector } from '#/app/store/store' import { TooltipCustom } from '#/shared' +import { useFeatureFlag } from '#/shared/lib/hooks' import { SvgIcon } from '#/shared/ui/svg' import { declineToken } from '#/shared/lib/helpers/get-token' import { IProps } from '#/shared/lib/types/entities' @@ -39,7 +40,10 @@ const convertLang = (toShort: T, lang: LangParam): LangRet return arrLang.find(([_, value]) => lang === value)![0] as LangReturn } +const RECURRENT_PAYMENTS_FLAG = 'recurrent-payments-enabled' + const InfoBar: React.FC = ({ device }) => { + const recurrentPaymentsEnabled = useFeatureFlag(RECURRENT_PAYMENTS_FLAG) const nextPaymentAt = useAppSelector((state) => state.user.payment_plan.next_payment_at) const daysLeft = getDaysLeft(nextPaymentAt) const balance = useAppSelector((state) => state.balance.balance) @@ -82,7 +86,7 @@ const InfoBar: React.FC = ({ device }) => { marginRight: '80px', }} > - {daysLeft != null ? : null} + {recurrentPaymentsEnabled && daysLeft != null ? : null}