Fix gift button color (#5108)

This commit is contained in:
zubiden 2024-11-02 21:11:21 +04:00 committed by Alexander Zinchuk
parent ba36d10cd4
commit 75a5fe7716
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ function GiftItemStar({ sticker, gift, onClick }: OwnProps & StateProps) {
nonInteractive nonInteractive
size={GIFT_STICKER_SIZE} size={GIFT_STICKER_SIZE}
/> />
<Button className={styles.buy} nonInteractive size="tiny" color="sparkles" withSparkleEffect pill fluid> <Button className={styles.buy} nonInteractive size="tiny" color="stars" withSparkleEffect pill fluid>
<Icon name="star" className={styles.star} /> <Icon name="star" className={styles.star} />
<div className={styles.amount}> <div className={styles.amount}>
{stars} {stars}

View File

@ -22,7 +22,7 @@ export type OwnProps = {
size?: 'default' | 'smaller' | 'tiny'; size?: 'default' | 'smaller' | 'tiny';
color?: ( color?: (
'primary' | 'secondary' | 'gray' | 'danger' | 'translucent' | 'translucent-white' | 'translucent-black' 'primary' | 'secondary' | 'gray' | 'danger' | 'translucent' | 'translucent-white' | 'translucent-black'
| 'translucent-bordered' | 'dark' | 'green' | 'adaptive' | 'sparkles' | 'translucent-bordered' | 'dark' | 'green' | 'adaptive' | 'stars'
); );
backgroundImage?: string; backgroundImage?: string;
id?: string; id?: string;
@ -172,7 +172,7 @@ const Button: FC<OwnProps> = ({
const content = ( const content = (
<> <>
{color === 'sparkles' && withSparkleEffect && <Sparkles preset="button" />} {withSparkleEffect && <Sparkles preset="button" />}
{isLoading ? ( {isLoading ? (
<div> <div>
<span dir={isRtl ? 'auto' : undefined}>{lang('Cache.ClearProgress')}</span> <span dir={isRtl ? 'auto' : undefined}>{lang('Cache.ClearProgress')}</span>