From ea17b2e73e4a72d694e0d6002d94c4e37c209e06 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 17 May 2024 15:45:44 +0200 Subject: [PATCH] Boosts: Add giveaway boost type icon (#4593) --- src/components/right/statistics/BoostStatistics.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/right/statistics/BoostStatistics.tsx b/src/components/right/statistics/BoostStatistics.tsx index 44867ce2a..818266a9f 100644 --- a/src/components/right/statistics/BoostStatistics.tsx +++ b/src/components/right/statistics/BoostStatistics.tsx @@ -3,7 +3,7 @@ import React, { } from '../../../lib/teact/teact'; import { getActions, withGlobal } from '../../../global'; -import type { ApiBoostStatistics, ApiPrepaidGiveaway } from '../../../api/types'; +import type { ApiBoost, ApiBoostStatistics, ApiPrepaidGiveaway } from '../../../api/types'; import type { TabState } from '../../../global/types'; import { @@ -163,7 +163,7 @@ const BoostStatistics = ({ )); - const renderBoostTypeIcon = useLastCallback((boost) => { + const renderBoostTypeIcon = useLastCallback((boost: ApiBoost) => { if (!boost.isFromGiveaway && !boost.isGift) { return undefined; } @@ -171,12 +171,12 @@ const BoostStatistics = ({ return (
-
{lang(boost.giveaway +
{lang(boost.isFromGiveaway ? 'lng_prizes_results_link' : 'BoostingGift')}