2023-03-14 15:55:31 +00:00
|
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
|
|
|
|
import { About } from '../../components/About';
|
2023-04-20 21:23:19 +00:00
|
|
|
import { i18n } from '../sandboxedInit';
|
2023-03-14 15:55:31 +00:00
|
|
|
import { strictAssert } from '../../util/assert';
|
|
|
|
|
2023-04-20 21:23:19 +00:00
|
|
|
const { AboutWindowProps } = window.Signal;
|
2023-03-14 15:55:31 +00:00
|
|
|
|
2023-04-20 21:23:19 +00:00
|
|
|
strictAssert(AboutWindowProps, 'window values not provided');
|
|
|
|
|
2023-03-14 15:55:31 +00:00
|
|
|
ReactDOM.render(
|
|
|
|
<About
|
2023-04-20 21:23:19 +00:00
|
|
|
closeAbout={() => window.SignalContext.executeMenuRole('close')}
|
2024-11-06 02:05:24 +00:00
|
|
|
appEnv={AboutWindowProps.appEnv}
|
|
|
|
platform={AboutWindowProps.platform}
|
|
|
|
arch={AboutWindowProps.arch}
|
2023-04-20 21:23:19 +00:00
|
|
|
i18n={i18n}
|
|
|
|
version={window.SignalContext.getVersion()}
|
2023-03-14 15:55:31 +00:00
|
|
|
/>,
|
|
|
|
document.getElementById('app')
|
|
|
|
);
|