Convert ReactWrapperView to TypeScript

This commit is contained in:
Evan Hahn
2022-06-03 16:33:39 +00:00
committed by GitHub
parent bb9a270bfd
commit 63189f3f91
16 changed files with 325 additions and 364 deletions

View File

@@ -26,23 +26,14 @@ const { ChatColorPicker } = require('../../ts/components/ChatColorPicker');
const {
ConfirmationDialog,
} = require('../../ts/components/ConfirmationDialog');
const {
ContactDetail,
} = require('../../ts/components/conversation/ContactDetail');
const {
ContactModal,
} = require('../../ts/components/conversation/ContactModal');
const { Emojify } = require('../../ts/components/conversation/Emojify');
const { ErrorModal } = require('../../ts/components/ErrorModal');
const { Lightbox } = require('../../ts/components/Lightbox');
const {
MediaGallery,
} = require('../../ts/components/conversation/media-gallery/MediaGallery');
const {
MessageDetail,
} = require('../../ts/components/conversation/MessageDetail');
const { Quote } = require('../../ts/components/conversation/Quote');
const { ProgressModal } = require('../../ts/components/ProgressModal');
const {
StagedLinkPreview,
} = require('../../ts/components/conversation/StagedLinkPreview');
@@ -52,7 +43,6 @@ const {
const {
SystemTraySettingsCheckboxes,
} = require('../../ts/components/conversation/SystemTraySettingsCheckboxes');
const { WhatsNewLink } = require('../../ts/components/WhatsNewLink');
// State
const {
@@ -320,19 +310,13 @@ exports.setup = (options = {}) => {
AttachmentList,
ChatColorPicker,
ConfirmationDialog,
ContactDetail,
ContactModal,
Emojify,
ErrorModal,
Lightbox,
MediaGallery,
MessageDetail,
Quote,
ProgressModal,
StagedLinkPreview,
DisappearingTimeDialog,
SystemTraySettingsCheckboxes,
WhatsNewLink,
};
const Roots = {