mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 11:53:23 +01:00
Rename files
This commit is contained in:
32
ts/state/smart/UnsupportedOSDialog.preload.tsx
Normal file
32
ts/state/smart/UnsupportedOSDialog.preload.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React, { memo } from 'react';
|
||||
import { useSelector } from 'react-redux';
|
||||
import { UnsupportedOSDialog } from '../../components/UnsupportedOSDialog.dom.js';
|
||||
import { getIntl } from '../selectors/user.std.js';
|
||||
import { getExpirationTimestamp } from '../selectors/expiration.dom.js';
|
||||
import type { WidthBreakpoint } from '../../components/_util.std.js';
|
||||
import OS from '../../util/os/osMain.node.js';
|
||||
|
||||
export type PropsType = Readonly<{
|
||||
type: 'warning' | 'error';
|
||||
containerWidthBreakpoint: WidthBreakpoint;
|
||||
}>;
|
||||
|
||||
export const SmartUnsupportedOSDialog = memo(function SmartUnsupportedOSDialog(
|
||||
ownProps: PropsType
|
||||
): JSX.Element {
|
||||
const i18n = useSelector(getIntl);
|
||||
const expirationTimestamp = useSelector(getExpirationTimestamp);
|
||||
const osName = OS.getName();
|
||||
|
||||
return (
|
||||
<UnsupportedOSDialog
|
||||
{...ownProps}
|
||||
i18n={i18n}
|
||||
expirationTimestamp={expirationTimestamp}
|
||||
OS={osName}
|
||||
/>
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user