mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 10:58:19 +01:00
Qualify CJS-only module imports
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import type { ReactElement, ReactNode } from 'react';
|
||||
import React, { useCallback, useState, useEffect } from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { noop } from 'lodash';
|
||||
import lodash from 'lodash';
|
||||
|
||||
import type { LocalizerType } from '../../types/Util.js';
|
||||
import {
|
||||
@@ -26,6 +26,8 @@ import { InstallScreenUpdateDialog } from './InstallScreenUpdateDialog.js';
|
||||
import { getClassNamesFor } from '../../util/getClassNamesFor.js';
|
||||
import type { UpdatesStateType } from '../../state/ducks/updates.js';
|
||||
|
||||
const { noop } = lodash;
|
||||
|
||||
// We can't always use destructuring assignment because of the complexity of this props
|
||||
// type.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
import { noop } from 'lodash';
|
||||
import lodash from 'lodash';
|
||||
|
||||
import { DialogType } from '../../types/Dialogs.js';
|
||||
import { InstallScreenStep } from '../../types/InstallScreen.js';
|
||||
@@ -21,6 +21,8 @@ import { Modal } from '../Modal.js';
|
||||
import { I18n } from '../I18n.js';
|
||||
import { formatFileSize } from '../../util/formatFileSize.js';
|
||||
|
||||
const { noop } = lodash;
|
||||
|
||||
export type PropsType = UpdatesStateType &
|
||||
Readonly<{
|
||||
i18n: LocalizerType;
|
||||
|
||||
Reference in New Issue
Block a user