fix(tip): hide page back button

This commit is contained in:
2026-07-20 14:19:41 +08:00
parent bfe48439b3
commit b2d10bfba8
2 changed files with 2 additions and 37 deletions
+1 -15
View File
@@ -2,7 +2,7 @@
import { useEffect, useMemo, useState, type CSSProperties } from "react";
import Image from "next/image";
import { ArrowLeft, Heart, Sparkles } from "lucide-react";
import { Heart, Sparkles } from "lucide-react";
import { CharacterAvatar } from "@/app/_components";
import { MobileShell } from "@/app/_components/core";
@@ -206,10 +206,6 @@ export function TipScreen({
}
};
const handleBack = () => {
navigator.back();
};
const handleResetPaidState = () => {
paymentDispatch({ type: "PaymentReset" });
};
@@ -229,16 +225,6 @@ export function TipScreen({
<div className={styles.bgGlowTwo} aria-hidden="true" />
<header className={styles.header}>
<button
type="button"
data-analytics-key="tip.back"
data-analytics-label="Go back from tip"
className={styles.backButton}
aria-label="Go back"
onClick={handleBack}
>
<ArrowLeft size={19} aria-hidden="true" />
</button>
<span className={styles.headerPill}>{character.copy.tipHeader}</span>
</header>