mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 10:27:49 +00:00
refactor: rename GIFTCODE_ start parameter prefix to GIFT_
This commit is contained in:
@@ -55,7 +55,7 @@ function CodeOnlySuccessState({
|
|||||||
const shortCode = purchaseToken.slice(0, 12);
|
const shortCode = purchaseToken.slice(0, 12);
|
||||||
const giftCode = `GIFT-${shortCode}`;
|
const giftCode = `GIFT-${shortCode}`;
|
||||||
const botUsername = import.meta.env.VITE_TELEGRAM_BOT_USERNAME as string | undefined;
|
const botUsername = import.meta.env.VITE_TELEGRAM_BOT_USERNAME as string | undefined;
|
||||||
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFTCODE_${shortCode}` : null;
|
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFT_${shortCode}` : null;
|
||||||
const cabinetLink = `${window.location.origin}/gift?tab=activate&code=${shortCode}`;
|
const cabinetLink = `${window.location.origin}/gift?tab=activate&code=${shortCode}`;
|
||||||
|
|
||||||
const fullMessage = [
|
const fullMessage = [
|
||||||
|
|||||||
@@ -988,7 +988,7 @@ function ShareModal({ gift, onClose }: { gift: SentGift; onClose: () => void })
|
|||||||
|
|
||||||
const shortCode = gift.token.slice(0, 12);
|
const shortCode = gift.token.slice(0, 12);
|
||||||
const botUsername = import.meta.env.VITE_TELEGRAM_BOT_USERNAME as string | undefined;
|
const botUsername = import.meta.env.VITE_TELEGRAM_BOT_USERNAME as string | undefined;
|
||||||
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFTCODE_${shortCode}` : null;
|
const botLink = botUsername ? `https://t.me/${botUsername}?start=GIFT_${shortCode}` : null;
|
||||||
const cabinetLink = `${window.location.origin}/gift?tab=activate&code=${shortCode}`;
|
const cabinetLink = `${window.location.origin}/gift?tab=activate&code=${shortCode}`;
|
||||||
|
|
||||||
const fullMessage = [
|
const fullMessage = [
|
||||||
|
|||||||
Reference in New Issue
Block a user