[MM-47083] Migrate "components/pdf_preview.jsx" and tests to Typescript (#25211)

Этот коммит содержится в:
Sudhanva-Nadiger
2024-01-02 16:03:42 +05:30
коммит произвёл GitHub
родитель b4ee90afca
Коммит 64232a106e
6 изменённых файлов: 91 добавлений и 45 удалений

Просмотреть файл

@@ -6,6 +6,8 @@ import {Modal} from 'react-bootstrap';
import {FormattedMessage} from 'react-intl';
import {useDispatch, useSelector} from 'react-redux';
import type {FileInfo} from '@mattermost/types/files';
import {closeModal} from 'actions/views/modals';
import {isModalOpen} from 'selectors/views/modals';
@@ -70,8 +72,8 @@ function CloudInvoicePreview(props: Props) {
extension: 'pdf',
size: 0,
name: '',
}}
fileUrl={props.url}
} as FileInfo}
fileUrl={props.url ?? ''}
scale={1.4}
handleBgClose={() => {}}
/>