refactor(subscription): use shared back button
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import { useEffect, useMemo, useRef, useState } from "react";
|
import { useEffect, useMemo, useRef, useState } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
|
import { BackButton } from "@/app/_components";
|
||||||
import { Checkbox, MobileShell } from "@/app/_components/core";
|
import { Checkbox, MobileShell } from "@/app/_components/core";
|
||||||
import { AppConstants } from "@/core/app_constants";
|
import { AppConstants } from "@/core/app_constants";
|
||||||
import { PendingPaymentOrderStorage } from "@/data/storage";
|
import { PendingPaymentOrderStorage } from "@/data/storage";
|
||||||
@@ -13,7 +14,6 @@ import { useUserDispatch } from "@/stores/user/user-context";
|
|||||||
import { ROUTES } from "@/router/routes";
|
import { ROUTES } from "@/router/routes";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
SubscriptionBackLink,
|
|
||||||
SubscriptionCheckoutButton,
|
SubscriptionCheckoutButton,
|
||||||
SubscriptionCoinsOfferSection,
|
SubscriptionCoinsOfferSection,
|
||||||
SubscriptionPaymentMethod,
|
SubscriptionPaymentMethod,
|
||||||
@@ -216,7 +216,11 @@ export function SubscriptionScreen({
|
|||||||
<MobileShell>
|
<MobileShell>
|
||||||
<div className={styles.shell}>
|
<div className={styles.shell}>
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<SubscriptionBackLink className={styles.backSlot} href={backHref} />
|
<BackButton
|
||||||
|
className={styles.backSlot}
|
||||||
|
href={backHref}
|
||||||
|
variant="soft"
|
||||||
|
/>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div className={styles.offerStack}>
|
<div className={styles.offerStack}>
|
||||||
|
|||||||
Reference in New Issue
Block a user