feat(tip): add character splash back button
This commit is contained in:
@@ -68,7 +68,8 @@
|
|||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: space-between;
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerPill {
|
.headerPill {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useEffect, useMemo, useState, type CSSProperties } from "react";
|
|||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { Heart, Sparkles } from "lucide-react";
|
import { Heart, Sparkles } from "lucide-react";
|
||||||
|
|
||||||
import { CharacterAvatar } from "@/app/_components";
|
import { BackButton, CharacterAvatar } from "@/app/_components";
|
||||||
import { MobileShell } from "@/app/_components/core";
|
import { MobileShell } from "@/app/_components/core";
|
||||||
import { PaymentMethodSelector } from "@/app/_components/payment/payment-method-selector";
|
import { PaymentMethodSelector } from "@/app/_components/payment/payment-method-selector";
|
||||||
import { usePaymentMethodSelection } from "@/app/_hooks/use-payment-method-selection";
|
import { usePaymentMethodSelection } from "@/app/_hooks/use-payment-method-selection";
|
||||||
@@ -225,6 +225,12 @@ export function TipScreen({
|
|||||||
<div className={styles.bgGlowTwo} aria-hidden="true" />
|
<div className={styles.bgGlowTwo} aria-hidden="true" />
|
||||||
|
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
|
<BackButton
|
||||||
|
href={characterRoutes.splash}
|
||||||
|
variant="soft"
|
||||||
|
ariaLabel="Back to character home"
|
||||||
|
analyticsKey="tip.back_to_splash"
|
||||||
|
/>
|
||||||
<span className={styles.headerPill}>{character.copy.tipHeader}</span>
|
<span className={styles.headerPill}>{character.copy.tipHeader}</span>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user