Star Gift: Fix incorrect text after upgrading (#5521)
This commit is contained in:
parent
cb5df7cee2
commit
be3051041a
@ -441,6 +441,14 @@ const ActionMessage: FC<OwnProps & StateProps> = ({
|
|||||||
}
|
}
|
||||||
const amountToConvert = starGift?.starsToConvert;
|
const amountToConvert = starGift?.starsToConvert;
|
||||||
|
|
||||||
|
if (starGift.isSaved) {
|
||||||
|
return lang('ActionStarGiftDisplaying');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (starGift.isUpgraded) {
|
||||||
|
return lang('ActionStarGiftUpgraded');
|
||||||
|
}
|
||||||
|
|
||||||
if (message.isOutgoing) {
|
if (message.isOutgoing) {
|
||||||
if (amountToConvert) {
|
if (amountToConvert) {
|
||||||
return lang('ActionStarGiftOutDescription', {
|
return lang('ActionStarGiftOutDescription', {
|
||||||
@ -456,14 +464,6 @@ const ActionMessage: FC<OwnProps & StateProps> = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (starGift.isSaved) {
|
|
||||||
return lang('ActionStarGiftDisplaying');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (starGift.isUpgraded) {
|
|
||||||
return lang('ActionStarGiftUpgraded');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (starGift.isConverted) {
|
if (starGift.isConverted) {
|
||||||
return message.isOutgoing
|
return message.isOutgoing
|
||||||
? lang('GiftInfoDescriptionOutConverted', {
|
? lang('GiftInfoDescriptionOutConverted', {
|
||||||
|
|||||||
@ -42,6 +42,7 @@
|
|||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 2.5rem;
|
min-height: 2.5rem;
|
||||||
|
font-size: 0.9375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fullWidth {
|
.fullWidth {
|
||||||
|
|||||||
@ -70,13 +70,15 @@
|
|||||||
place-content: center;
|
place-content: center;
|
||||||
height: 22.5rem;
|
height: 22.5rem;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
margin-top: 0.75rem;
|
||||||
|
|
||||||
|
padding: 0.5rem;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
|
||||||
border-bottom-right-radius: var(--border-radius-default);
|
border-radius: var(--border-radius-default);
|
||||||
border-bottom-left-radius: var(--border-radius-default);
|
|
||||||
|
|
||||||
background-color: var(--theme-background-color);
|
background-color: var(--theme-background-color);
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
|||||||
@ -306,7 +306,7 @@ const GiftInfoModal = ({
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gift.upgradeStars) {
|
if (gift.upgradeStars && !userGift?.upgradeMsgId) {
|
||||||
tableData.push([
|
tableData.push([
|
||||||
lang('GiftInfoStatus'),
|
lang('GiftInfoStatus'),
|
||||||
<div className={styles.giftValue}>
|
<div className={styles.giftValue}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user