Button: Remove 'smaller' size in some components (#6169)
This commit is contained in:
parent
fd4bf1797e
commit
4c950b34d8
@ -77,7 +77,7 @@ const AuthRegister: FC<StateProps> = ({
|
|||||||
autoComplete="family-name"
|
autoComplete="family-name"
|
||||||
/>
|
/>
|
||||||
{isButtonShown && (
|
{isButtonShown && (
|
||||||
<Button size="smaller" type="submit" ripple isLoading={authIsLoading}>{lang('Next')}</Button>
|
<Button type="submit" ripple isLoading={authIsLoading}>{lang('Next')}</Button>
|
||||||
)}
|
)}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -109,7 +109,6 @@ const CountryPickerModal: FC<OwnProps> = ({
|
|||||||
|
|
||||||
<div className={styles.footer}>
|
<div className={styles.footer}>
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
>
|
>
|
||||||
{lang('SelectCountries.OK')}
|
{lang('SelectCountries.OK')}
|
||||||
|
|||||||
@ -112,7 +112,6 @@ const InviteLink: FC<OwnProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
{withShare && (
|
{withShare && (
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
onClick={handleShare}
|
onClick={handleShare}
|
||||||
className={styles.share}
|
className={styles.share}
|
||||||
|
|||||||
@ -155,7 +155,7 @@ const PasswordForm: FC<OwnProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
{description && <p className="description">{description}</p>}
|
{description && <p className="description">{description}</p>}
|
||||||
{onSubmit && (canSubmit || shouldShowSubmit) && (
|
{onSubmit && (canSubmit || shouldShowSubmit) && (
|
||||||
<Button size="smaller" type="submit" ripple={!noRipple} isLoading={isLoading} disabled={!canSubmit}>
|
<Button type="submit" ripple={!noRipple} isLoading={isLoading} disabled={!canSubmit}>
|
||||||
{submitLabel}
|
{submitLabel}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -110,7 +110,6 @@ const PrivacySettingsNoticeModal = ({ isOpen, isReadDate, user }: OwnProps & Sta
|
|||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={isReadDate ? handleShowReadTime : handleShowLastSeen}
|
onClick={isReadDate ? handleShowReadTime : handleShowLastSeen}
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
>
|
>
|
||||||
@ -126,7 +125,6 @@ const PrivacySettingsNoticeModal = ({ isOpen, isReadDate, user }: OwnProps & Sta
|
|||||||
</p>
|
</p>
|
||||||
<Button
|
<Button
|
||||||
withPremiumGradient
|
withPremiumGradient
|
||||||
size="smaller"
|
|
||||||
onClick={handleOpenPremium}
|
onClick={handleOpenPremium}
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -239,7 +239,6 @@ const StickerSetModal: FC<OwnProps & StateProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
<div className="button-wrapper">
|
<div className="button-wrapper">
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
fluid
|
fluid
|
||||||
color={isAdded ? 'danger' : 'primary'}
|
color={isAdded ? 'danger' : 'primary'}
|
||||||
onClick={handleButtonClick}
|
onClick={handleButtonClick}
|
||||||
|
|||||||
@ -69,7 +69,6 @@ function PaidMessagePrice({
|
|||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
fluid
|
fluid
|
||||||
size="smaller"
|
|
||||||
noForcedUpperCase
|
noForcedUpperCase
|
||||||
className="settings-unlock-button"
|
className="settings-unlock-button"
|
||||||
onClick={handleUnlockWithPremium}
|
onClick={handleUnlockWithPremium}
|
||||||
|
|||||||
@ -50,7 +50,6 @@ const PickerModal = ({
|
|||||||
withPremiumGradient={withPremiumGradient}
|
withPremiumGradient={withPremiumGradient}
|
||||||
onClick={onConfirm || modalProps.onClose}
|
onClick={onConfirm || modalProps.onClose}
|
||||||
color="primary"
|
color="primary"
|
||||||
size="smaller"
|
|
||||||
disabled={isConfirmDisabled}
|
disabled={isConfirmDisabled}
|
||||||
>
|
>
|
||||||
{confirmButtonText || lang('Confirm')}
|
{confirmButtonText || lang('Confirm')}
|
||||||
|
|||||||
@ -405,7 +405,6 @@ const ChatExtra: FC<OwnProps & StateProps> = ({
|
|||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
className={styles.openAppButton}
|
className={styles.openAppButton}
|
||||||
size="smaller"
|
|
||||||
onClick={handleOpenApp}
|
onClick={handleOpenApp}
|
||||||
>
|
>
|
||||||
{oldLang('ProfileBotOpenApp')}
|
{oldLang('ProfileBotOpenApp')}
|
||||||
|
|||||||
@ -57,7 +57,6 @@ const EmptyFolder: FC<OwnProps & StateProps> = ({
|
|||||||
fluid
|
fluid
|
||||||
pill
|
pill
|
||||||
onClick={handleEditFolder}
|
onClick={handleEditFolder}
|
||||||
size="smaller"
|
|
||||||
isRtl={lang.isRtl}
|
isRtl={lang.isRtl}
|
||||||
>
|
>
|
||||||
<Icon name="settings" />
|
<Icon name="settings" />
|
||||||
|
|||||||
@ -54,7 +54,6 @@ const EmptyForum: FC<OwnProps & StateProps> = ({
|
|||||||
ripple={!isMobile}
|
ripple={!isMobile}
|
||||||
fluid
|
fluid
|
||||||
onClick={handleCreateTopic}
|
onClick={handleCreateTopic}
|
||||||
size="smaller"
|
|
||||||
isRtl={lang.isRtl}
|
isRtl={lang.isRtl}
|
||||||
>
|
>
|
||||||
<div className={styles.buttonText}>
|
<div className={styles.buttonText}>
|
||||||
|
|||||||
@ -57,10 +57,10 @@ const UnconfirmedSession = ({ sessions, onHeightChange }: OwnProps) => {
|
|||||||
{lang('UnconfirmedAuthSingle', locationString)}
|
{lang('UnconfirmedAuthSingle', locationString)}
|
||||||
</p>
|
</p>
|
||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
<Button fluid isText size="smaller" className={styles.button} onClick={handleAccept}>
|
<Button fluid isText className={styles.button} onClick={handleAccept}>
|
||||||
{lang('UnconfirmedAuthConfirm')}
|
{lang('UnconfirmedAuthConfirm')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button fluid isText size="smaller" color="danger" onClick={handleReject} className={styles.button}>
|
<Button fluid isText color="danger" onClick={handleReject} className={styles.button}>
|
||||||
{lang('UnconfirmedAuthDeny')}
|
{lang('UnconfirmedAuthDeny')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -118,7 +118,6 @@ const PublicPostsSearchLauncher = ({
|
|||||||
<Button
|
<Button
|
||||||
className={styles.paidSearchButton}
|
className={styles.paidSearchButton}
|
||||||
color="primary"
|
color="primary"
|
||||||
size="smaller"
|
|
||||||
disabled={!searchQuery}
|
disabled={!searchQuery}
|
||||||
noForcedUpperCase
|
noForcedUpperCase
|
||||||
onClick={handlePaidSearchClick}
|
onClick={handlePaidSearchClick}
|
||||||
@ -164,7 +163,6 @@ const PublicPostsSearchLauncher = ({
|
|||||||
<Button
|
<Button
|
||||||
className={styles.searchButton}
|
className={styles.searchButton}
|
||||||
color="primary"
|
color="primary"
|
||||||
size="smaller"
|
|
||||||
noForcedUpperCase
|
noForcedUpperCase
|
||||||
disabled={!searchQuery}
|
disabled={!searchQuery}
|
||||||
onClick={handleSearchClick}
|
onClick={handleSearchClick}
|
||||||
@ -209,7 +207,6 @@ const PublicPostsSearchLauncher = ({
|
|||||||
<Button
|
<Button
|
||||||
className={styles.subscribePremiumButton}
|
className={styles.subscribePremiumButton}
|
||||||
color="primary"
|
color="primary"
|
||||||
size="smaller"
|
|
||||||
noForcedUpperCase
|
noForcedUpperCase
|
||||||
onClick={handleSubscribePremiumClick}
|
onClick={handleSubscribePremiumClick}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -405,7 +405,6 @@ const SettingsPrivacy: FC<OwnProps & StateProps> = ({
|
|||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
fluid
|
fluid
|
||||||
size="smaller"
|
|
||||||
noForcedUpperCase
|
noForcedUpperCase
|
||||||
className="settings-unlock-button"
|
className="settings-unlock-button"
|
||||||
onClick={handleAgeVerification}
|
onClick={handleAgeVerification}
|
||||||
|
|||||||
@ -213,7 +213,6 @@ const SettingsFoldersMain: FC<OwnProps & StateProps> = ({
|
|||||||
// TODO: Refactor button component to handle icon placemenet with props
|
// TODO: Refactor button component to handle icon placemenet with props
|
||||||
className="settings-button with-icon"
|
className="settings-button with-icon"
|
||||||
color="primary"
|
color="primary"
|
||||||
size="smaller"
|
|
||||||
pill
|
pill
|
||||||
fluid
|
fluid
|
||||||
onClick={handleCreateFolder}
|
onClick={handleCreateFolder}
|
||||||
|
|||||||
@ -339,7 +339,6 @@ const Giveaway = ({
|
|||||||
<Button
|
<Button
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
color="adaptive"
|
color="adaptive"
|
||||||
size="smaller"
|
|
||||||
onClick={handleShowInfoClick}
|
onClick={handleShowInfoClick}
|
||||||
>
|
>
|
||||||
{lang('BoostingHowItWork')}
|
{lang('BoostingHowItWork')}
|
||||||
|
|||||||
@ -167,7 +167,6 @@ const AboutAdsModal = ({ modal, minLevelToRestrictAds }: OwnProps & StateProps)
|
|||||||
>
|
>
|
||||||
{regularAdContent}
|
{regularAdContent}
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
>
|
>
|
||||||
{oldLang('RevenueSharingAdsUnderstood')}
|
{oldLang('RevenueSharingAdsUnderstood')}
|
||||||
|
|||||||
@ -111,7 +111,6 @@ const ChatlistAlready: FC<OwnProps> = ({ invite, folder }) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={handleButtonClick}
|
onClick={handleButtonClick}
|
||||||
>
|
>
|
||||||
<div className={styles.buttonText}>
|
<div className={styles.buttonText}>
|
||||||
|
|||||||
@ -76,7 +76,6 @@ const ChatlistDelete: FC<OwnProps> = ({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={handleButtonClick}
|
onClick={handleButtonClick}
|
||||||
>
|
>
|
||||||
<div className={styles.buttonText}>
|
<div className={styles.buttonText}>
|
||||||
|
|||||||
@ -82,7 +82,6 @@ const ChatlistNew: FC<OwnProps> = ({ invite }) => {
|
|||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
onClick={handleButtonClick}
|
onClick={handleButtonClick}
|
||||||
size="smaller"
|
|
||||||
disabled={!selectedPeerIds.length}
|
disabled={!selectedPeerIds.length}
|
||||||
>
|
>
|
||||||
<div className={styles.buttonText}>
|
<div className={styles.buttonText}>
|
||||||
|
|||||||
@ -70,7 +70,7 @@ const TableAboutModal = ({
|
|||||||
{withSeparator && <Separator className={styles.separator} />}
|
{withSeparator && <Separator className={styles.separator} />}
|
||||||
{footer}
|
{footer}
|
||||||
{buttonText && (
|
{buttonText && (
|
||||||
<Button size="smaller" onClick={onButtonClick || onClose}>{buttonText}</Button>
|
<Button onClick={onButtonClick || onClose}>{buttonText}</Button>
|
||||||
)}
|
)}
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -103,7 +103,6 @@ const TableInfoModal = ({
|
|||||||
{buttonText && (
|
{buttonText && (
|
||||||
<Button
|
<Button
|
||||||
className={!footer ? styles.noFooter : undefined}
|
className={!footer ? styles.noFooter : undefined}
|
||||||
size="smaller"
|
|
||||||
onClick={onButtonClick || onClose}
|
onClick={onButtonClick || onClose}
|
||||||
>
|
>
|
||||||
{buttonText}
|
{buttonText}
|
||||||
|
|||||||
@ -75,7 +75,6 @@ const FrozenAccountModal = ({
|
|||||||
<div className={styles.footer}>
|
<div className={styles.footer}>
|
||||||
<Button
|
<Button
|
||||||
className={styles.buttonAppeal}
|
className={styles.buttonAppeal}
|
||||||
size="smaller"
|
|
||||||
onClick={handleAppeal}
|
onClick={handleAppeal}
|
||||||
noForcedUpperCase
|
noForcedUpperCase
|
||||||
>
|
>
|
||||||
@ -83,7 +82,6 @@ const FrozenAccountModal = ({
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
isText
|
isText
|
||||||
size="smaller"
|
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
noForcedUpperCase
|
noForcedUpperCase
|
||||||
>
|
>
|
||||||
|
|||||||
@ -250,7 +250,7 @@ const GiftInfoModal = ({
|
|||||||
const renderFooterButton = useLastCallback(() => {
|
const renderFooterButton = useLastCallback(() => {
|
||||||
if (canBuyGift) {
|
if (canBuyGift) {
|
||||||
return (
|
return (
|
||||||
<Button noForcedUpperCase size="smaller" onClick={handleBuyGift}>
|
<Button noForcedUpperCase onClick={handleBuyGift}>
|
||||||
{lang('ButtonBuyGift', {
|
{lang('ButtonBuyGift', {
|
||||||
stars: resellPrice?.currency === TON_CURRENCY_CODE
|
stars: resellPrice?.currency === TON_CURRENCY_CODE
|
||||||
? formatTonAsIcon(lang, resellPrice.amount, { shouldConvertFromNanos: true })
|
? formatTonAsIcon(lang, resellPrice.amount, { shouldConvertFromNanos: true })
|
||||||
@ -262,7 +262,7 @@ const GiftInfoModal = ({
|
|||||||
|
|
||||||
if (canFocusUpgrade) {
|
if (canFocusUpgrade) {
|
||||||
return (
|
return (
|
||||||
<Button size="smaller" onClick={handleFocusUpgraded}>
|
<Button onClick={handleFocusUpgraded}>
|
||||||
{lang('GiftInfoViewUpgraded')}
|
{lang('GiftInfoViewUpgraded')}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
@ -270,7 +270,7 @@ const GiftInfoModal = ({
|
|||||||
|
|
||||||
if (canManage && savedGift?.alreadyPaidUpgradeStars && !savedGift.upgradeMsgId) {
|
if (canManage && savedGift?.alreadyPaidUpgradeStars && !savedGift.upgradeMsgId) {
|
||||||
return (
|
return (
|
||||||
<Button size="smaller" isShiny onClick={handleOpenUpgradeModal}>
|
<Button isShiny onClick={handleOpenUpgradeModal}>
|
||||||
{lang('GiftInfoUpgradeForFree')}
|
{lang('GiftInfoUpgradeForFree')}
|
||||||
<Icon name="arrow-down-circle" className={styles.upgradeIcon} />
|
<Icon name="arrow-down-circle" className={styles.upgradeIcon} />
|
||||||
</Button>
|
</Button>
|
||||||
@ -279,7 +279,7 @@ const GiftInfoModal = ({
|
|||||||
|
|
||||||
if (canManage && savedGift.canUpgrade && !savedGift.upgradeMsgId) {
|
if (canManage && savedGift.canUpgrade && !savedGift.upgradeMsgId) {
|
||||||
return (
|
return (
|
||||||
<Button size="smaller" isShiny onClick={handleOpenUpgradeModal}>
|
<Button isShiny onClick={handleOpenUpgradeModal}>
|
||||||
{lang('GiftInfoUpgrade')}
|
{lang('GiftInfoUpgrade')}
|
||||||
<Icon name="arrow-down-circle" className={styles.upgradeIcon} />
|
<Icon name="arrow-down-circle" className={styles.upgradeIcon} />
|
||||||
</Button>
|
</Button>
|
||||||
@ -287,7 +287,7 @@ const GiftInfoModal = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button size="smaller" onClick={handleClose}>
|
<Button onClick={handleClose}>
|
||||||
{lang('OK')}
|
{lang('OK')}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -163,7 +163,7 @@ const GiftResalePriceComposerModal = ({
|
|||||||
{lang('OnlyAcceptTONDescription')}
|
{lang('OnlyAcceptTONDescription')}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button noForcedUpperCase disabled={!isPriceCorrect} size="smaller" onClick={handleSellGift}>
|
<Button noForcedUpperCase disabled={!isPriceCorrect} onClick={handleSellGift}>
|
||||||
{isPriceCorrect && lang('ButtonSellGift', {
|
{isPriceCorrect && lang('ButtonSellGift', {
|
||||||
stars: isPriceInTon ? formatTonAsIcon(lang, price)
|
stars: isPriceInTon ? formatTonAsIcon(lang, price)
|
||||||
: formatStarsAsIcon(lang, price, { asFont: true }),
|
: formatStarsAsIcon(lang, price, { asFont: true }),
|
||||||
|
|||||||
@ -138,7 +138,6 @@ const GiftStatusInfoModal = ({
|
|||||||
return (
|
return (
|
||||||
<div className={styles.footer}>
|
<div className={styles.footer}>
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={onWearClick}
|
onClick={onWearClick}
|
||||||
>
|
>
|
||||||
{lang('UniqueStatusWearButton')}
|
{lang('UniqueStatusWearButton')}
|
||||||
|
|||||||
@ -132,7 +132,7 @@ const GiftUpgradeModal = ({ modal, recipient }: OwnProps & StateProps) => {
|
|||||||
const footer = (
|
const footer = (
|
||||||
<div className={styles.footer}>
|
<div className={styles.footer}>
|
||||||
{!gift && (
|
{!gift && (
|
||||||
<Button className={styles.footerButton} size="smaller" onClick={handleClose}>
|
<Button className={styles.footerButton} onClick={handleClose}>
|
||||||
{lang('OK')}
|
{lang('OK')}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
@ -143,7 +143,7 @@ const GiftUpgradeModal = ({ modal, recipient }: OwnProps & StateProps) => {
|
|||||||
onCheck={setShouldKeepOriginalDetails}
|
onCheck={setShouldKeepOriginalDetails}
|
||||||
checked={shouldKeepOriginalDetails}
|
checked={shouldKeepOriginalDetails}
|
||||||
/>
|
/>
|
||||||
<Button className={styles.footerButton} size="smaller" isShiny onClick={handleUpgrade}>
|
<Button className={styles.footerButton} isShiny onClick={handleUpgrade}>
|
||||||
{gift.alreadyPaidUpgradeStars
|
{gift.alreadyPaidUpgradeStars
|
||||||
? lang('GeneralConfirm')
|
? lang('GeneralConfirm')
|
||||||
: lang('GiftUpgradeButton', {
|
: lang('GiftUpgradeButton', {
|
||||||
|
|||||||
@ -133,7 +133,7 @@ const GiftWithdrawModal = ({ modal, hasPassword, passwordHint }: OwnProps & Stat
|
|||||||
{!hasPassword && (
|
{!hasPassword && (
|
||||||
<>
|
<>
|
||||||
<span className={styles.noPassword}>{lang('ErrorPasswordMissing')}</span>
|
<span className={styles.noPassword}>{lang('ErrorPasswordMissing')}</span>
|
||||||
<Button className="mt-2" size="smaller" onClick={handleSetUpPassword}>{lang('SetUp2FA')}</Button>
|
<Button className="mt-2" onClick={handleSetUpPassword}>{lang('SetUp2FA')}</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{hasPassword && !exportDelay && (
|
{hasPassword && !exportDelay && (
|
||||||
|
|||||||
@ -152,7 +152,6 @@ const InviteViaLinkModal: FC<OwnProps & StateProps> = ({
|
|||||||
<Button
|
<Button
|
||||||
withPremiumGradient
|
withPremiumGradient
|
||||||
isShiny
|
isShiny
|
||||||
size="smaller"
|
|
||||||
onClick={handleOpenPremiumModal}
|
onClick={handleOpenPremiumModal}
|
||||||
>
|
>
|
||||||
{lang('InvitePremiumBlockedSubscribe')}
|
{lang('InvitePremiumBlockedSubscribe')}
|
||||||
@ -185,7 +184,6 @@ const InviteViaLinkModal: FC<OwnProps & StateProps> = ({
|
|||||||
{canSendInviteLink && (
|
{canSendInviteLink && (
|
||||||
<Button
|
<Button
|
||||||
className={styles.sendInvites}
|
className={styles.sendInvites}
|
||||||
size="smaller"
|
|
||||||
onClick={handleSendInviteLink}
|
onClick={handleSendInviteLink}
|
||||||
disabled={!selectedMemberIds.length}
|
disabled={!selectedMemberIds.length}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -351,7 +351,6 @@ const PaidReactionModal = ({
|
|||||||
label={oldLang('StarsReactionShowMeInTopSenders')}
|
label={oldLang('StarsReactionShowMeInTopSenders')}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={handleSend}
|
onClick={handleSend}
|
||||||
>
|
>
|
||||||
{lang('SendPaidReaction', { amount: starsAmount }, {
|
{lang('SendPaidReaction', { amount: starsAmount }, {
|
||||||
|
|||||||
@ -163,7 +163,6 @@ const PreparedMessageModal: FC<OwnProps & StateProps> = ({
|
|||||||
{lang('WebAppShareMessageInfo', { user: getUserFullName(bot) })}
|
{lang('WebAppShareMessageInfo', { user: getUserFullName(bot) })}
|
||||||
</p>
|
</p>
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={handleOpenClick}
|
onClick={handleOpenClick}
|
||||||
>
|
>
|
||||||
{lang('BotShareMessageShare')}
|
{lang('BotShareMessageShare')}
|
||||||
|
|||||||
@ -219,7 +219,6 @@ const ReportModal = ({
|
|||||||
noReplaceNewlines
|
noReplaceNewlines
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
onClick={sendMessageReportHandler}
|
onClick={sendMessageReportHandler}
|
||||||
disabled={!renderingSection.isOptional ? !text.length : undefined}
|
disabled={!renderingSection.isOptional ? !text.length : undefined}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -198,7 +198,7 @@ const StarPaymentModal = ({
|
|||||||
<div className={styles.description}>
|
<div className={styles.description}>
|
||||||
{renderText(descriptionText, ['simple_markdown', 'emoji'])}
|
{renderText(descriptionText, ['simple_markdown', 'emoji'])}
|
||||||
</div>
|
</div>
|
||||||
<Button className={styles.paymentButton} size="smaller" onClick={handlePayment} isLoading={isLoading}>
|
<Button className={styles.paymentButton} onClick={handlePayment} isLoading={isLoading}>
|
||||||
{lang(isBotSubscription ? 'StarsSubscribeBotButtonMonth' : 'StarsPay', {
|
{lang(isBotSubscription ? 'StarsSubscribeBotButtonMonth' : 'StarsPay', {
|
||||||
amount: formatStarsAsIcon(lang, amount!, { asFont: true }),
|
amount: formatStarsAsIcon(lang, amount!, { asFont: true }),
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@ -217,7 +217,6 @@ const StarsSubscriptionModal: FC<OwnProps & StateProps> = ({
|
|||||||
)}
|
)}
|
||||||
{buttonState !== 'hidden' && (
|
{buttonState !== 'hidden' && (
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
color={buttonState === 'cancel' ? 'danger' : 'primary'}
|
color={buttonState === 'cancel' ? 'danger' : 'primary'}
|
||||||
isText={buttonState === 'cancel'}
|
isText={buttonState === 'cancel'}
|
||||||
onClick={handleButtonClick}
|
onClick={handleButtonClick}
|
||||||
|
|||||||
@ -282,7 +282,6 @@ const SuggestMessageModal = ({
|
|||||||
<Button
|
<Button
|
||||||
className={styles.offerButton}
|
className={styles.offerButton}
|
||||||
onClick={handleOffer}
|
onClick={handleOffer}
|
||||||
size="smaller"
|
|
||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
>
|
>
|
||||||
{isInSuggestChangesMode ? lang('ButtonUpdateTerms')
|
{isInSuggestChangesMode ? lang('ButtonUpdateTerms')
|
||||||
|
|||||||
@ -126,7 +126,7 @@ const SuggestedStatusModal = ({ modal, currentUser, bot }: OwnProps & StateProps
|
|||||||
withEmojiStatus
|
withEmojiStatus
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Button size="smaller" onClick={handleSetStatus}>
|
<Button onClick={handleSetStatus}>
|
||||||
{lang('GeneralConfirm')}
|
{lang('GeneralConfirm')}
|
||||||
</Button>
|
</Button>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|||||||
@ -799,7 +799,7 @@ const Profile: FC<OwnProps & StateProps> = ({
|
|||||||
{!isCurrentUserPremium && (
|
{!isCurrentUserPremium && (
|
||||||
<>
|
<>
|
||||||
{}
|
{}
|
||||||
<Button className="show-more-channels" size="smaller" onClick={() => openPremiumModal()}>
|
<Button className="show-more-channels" onClick={() => openPremiumModal()}>
|
||||||
{oldLang('UnlockSimilar')}
|
{oldLang('UnlockSimilar')}
|
||||||
<Icon name="unlock-badge" />
|
<Icon name="unlock-badge" />
|
||||||
</Button>
|
</Button>
|
||||||
@ -838,7 +838,7 @@ const Profile: FC<OwnProps & StateProps> = ({
|
|||||||
{!isCurrentUserPremium && (
|
{!isCurrentUserPremium && (
|
||||||
<>
|
<>
|
||||||
{}
|
{}
|
||||||
<Button className="show-more-bots" size="smaller" onClick={() => openPremiumModal()}>
|
<Button className="show-more-bots" onClick={() => openPremiumModal()}>
|
||||||
{lang('UnlockMoreSimilarBots')}
|
{lang('UnlockMoreSimilarBots')}
|
||||||
<Icon name="unlock-badge" />
|
<Icon name="unlock-badge" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -255,7 +255,6 @@ const MonetizationStatistics = ({
|
|||||||
{renderAvailableReward()}
|
{renderAvailableReward()}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
size="smaller"
|
|
||||||
type="button"
|
type="button"
|
||||||
onClick={verificationMonetizationHandler}
|
onClick={verificationMonetizationHandler}
|
||||||
disabled={!canWithdraw}
|
disabled={!canWithdraw}
|
||||||
|
|||||||
@ -110,7 +110,6 @@ const StealthModeModal = ({ isOpen, stealthMode, isCurrentUserPremium }: StatePr
|
|||||||
</ListItem>
|
</ListItem>
|
||||||
<Button
|
<Button
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
size="smaller"
|
|
||||||
disabled={isOnCooldown}
|
disabled={isOnCooldown}
|
||||||
isShiny={!isCurrentUserPremium}
|
isShiny={!isCurrentUserPremium}
|
||||||
withPremiumGradient={!isCurrentUserPremium}
|
withPremiumGradient={!isCurrentUserPremium}
|
||||||
|
|||||||
@ -28,7 +28,6 @@ const ShowMoreButton: FC<OwnProps> = ({
|
|||||||
<Button
|
<Button
|
||||||
className="ShowMoreButton"
|
className="ShowMoreButton"
|
||||||
color="translucent"
|
color="translucent"
|
||||||
size="smaller"
|
|
||||||
isText
|
isText
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
isRtl={lang.isRtl}
|
isRtl={lang.isRtl}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user