Stars Transaction Modal: Support transaction refund badge (#5870)
This commit is contained in:
parent
d853de550f
commit
5ceb7a340c
@ -1867,6 +1867,7 @@
|
|||||||
"ActionMigratedFrom" = "Migrated from {chat}";
|
"ActionMigratedFrom" = "Migrated from {chat}";
|
||||||
"ActionMigratedTo" = "Migrated to {chat}";
|
"ActionMigratedTo" = "Migrated to {chat}";
|
||||||
"ActionHistoryCleared" = "History was cleared";
|
"ActionHistoryCleared" = "History was cleared";
|
||||||
|
"Refunded" = "Refund";
|
||||||
"UniqueStatusWearTitle" = "Wear {gift}";
|
"UniqueStatusWearTitle" = "Wear {gift}";
|
||||||
"UniqueStatusBenefitsDescription" = "and get these benefits:";
|
"UniqueStatusBenefitsDescription" = "and get these benefits:";
|
||||||
"UniqueStatusBadgeBenefitTitle" = "Radiant Badge";
|
"UniqueStatusBadgeBenefitTitle" = "Radiant Badge";
|
||||||
|
|||||||
@ -64,6 +64,15 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.refunded {
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
line-height: 1;
|
||||||
|
border-radius: var(--border-radius-messages-small);
|
||||||
|
padding: 0.25em 0.5em;
|
||||||
|
background-color: rgba(var(--color-text-green-rgb), 0.2);
|
||||||
|
color: var(--color-success);
|
||||||
|
}
|
||||||
|
|
||||||
.totalStars {
|
.totalStars {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@ -57,7 +57,11 @@ type StateProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const StarsTransactionModal: FC<OwnProps & StateProps> = ({
|
const StarsTransactionModal: FC<OwnProps & StateProps> = ({
|
||||||
modal, peer, canPlayAnimatedEmojis, topSticker, paidMessageCommission,
|
modal,
|
||||||
|
peer,
|
||||||
|
canPlayAnimatedEmojis,
|
||||||
|
topSticker,
|
||||||
|
paidMessageCommission,
|
||||||
}) => {
|
}) => {
|
||||||
const { showNotification, openMediaViewer, closeStarsTransactionModal } = getActions();
|
const { showNotification, openMediaViewer, closeStarsTransactionModal } = getActions();
|
||||||
|
|
||||||
@ -168,6 +172,9 @@ const StarsTransactionModal: FC<OwnProps & StateProps> = ({
|
|||||||
{formatStarsTransactionAmount(lang, stars)}
|
{formatStarsTransactionAmount(lang, stars)}
|
||||||
</span>
|
</span>
|
||||||
<StarIcon type="gold" size="middle" />
|
<StarIcon type="gold" size="middle" />
|
||||||
|
{transaction.isRefund && (
|
||||||
|
<p className={styles.refunded}>{lang('Refunded')}</p>
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
{transaction.paidMessages && transaction.starRefCommision && paidMessageCommission
|
{transaction.paidMessages && transaction.starRefCommision && paidMessageCommission
|
||||||
&& (
|
&& (
|
||||||
|
|||||||
1
src/types/language.d.ts
vendored
1
src/types/language.d.ts
vendored
@ -1434,6 +1434,7 @@ export interface LangPair {
|
|||||||
'ActionGiftPremiumText': undefined;
|
'ActionGiftPremiumText': undefined;
|
||||||
'ActionGiftStarsText': undefined;
|
'ActionGiftStarsText': undefined;
|
||||||
'ActionHistoryCleared': undefined;
|
'ActionHistoryCleared': undefined;
|
||||||
|
'Refunded': undefined;
|
||||||
'UniqueStatusBenefitsDescription': undefined;
|
'UniqueStatusBenefitsDescription': undefined;
|
||||||
'UniqueStatusBadgeBenefitTitle': undefined;
|
'UniqueStatusBadgeBenefitTitle': undefined;
|
||||||
'UniqueStatusBadgeDescription': undefined;
|
'UniqueStatusBadgeDescription': undefined;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user