diff --git a/src/components/common/StickerSetModal.tsx b/src/components/common/StickerSetModal.tsx index e3c88aa2..27c54107 100644 --- a/src/components/common/StickerSetModal.tsx +++ b/src/components/common/StickerSetModal.tsx @@ -11,6 +11,7 @@ import { pick } from '../../util/iteratees'; import { selectStickerSet } from '../../modules/selectors'; import { useIntersectionObserver } from '../../hooks/useIntersectionObserver'; import useLang from '../../hooks/useLang'; +import renderText from './helpers/renderText'; import Modal from '../ui/Modal'; import Button from '../ui/Button'; @@ -78,7 +79,7 @@ const StickerSetModal: FC = ({ isOpen={isOpen} onClose={onClose} hasCloseButton - title={stickerSet ? stickerSet.title : lang('AccDescrStickerSet')} + title={stickerSet ? renderText(stickerSet.title, ['emoji', 'links']) : lang('AccDescrStickerSet')} > {stickerSet && stickerSet.stickers ? ( <> diff --git a/src/components/ui/Modal.tsx b/src/components/ui/Modal.tsx index 985025f7..27bbd4a8 100644 --- a/src/components/ui/Modal.tsx +++ b/src/components/ui/Modal.tsx @@ -2,6 +2,8 @@ import React, { FC, useEffect, useRef, } from '../../lib/teact/teact'; +import { TextPart } from '../common/helpers/renderMessageText'; + import captureKeyboardListeners from '../../util/captureKeyboardListeners'; import trapFocus from '../../util/trapFocus'; import buildClassName from '../../util/buildClassName'; @@ -19,10 +21,10 @@ import './Modal.scss'; const ANIMATION_DURATION = 200; type OwnProps = { - title?: string; + title?: string | TextPart[]; className?: string; isOpen?: boolean; - header?: FC; + header?: any; hasCloseButton?: boolean; noBackdrop?: boolean; children: any;