Unsupported OS Dialog
This commit is contained in:
parent
c6e184016b
commit
ac50af52d2
44 changed files with 776 additions and 224 deletions
|
@ -6,17 +6,19 @@ import { mapDispatchToProps } from '../actions';
|
|||
import { DialogUpdate } from '../../components/DialogUpdate';
|
||||
import type { StateType } from '../reducer';
|
||||
import { getIntl } from '../selectors/user';
|
||||
import { hasNetworkDialog } from '../selectors/network';
|
||||
import { getExpirationTimestamp } from '../selectors/expiration';
|
||||
import type { WidthBreakpoint } from '../../components/_util';
|
||||
import { getName as getOSName } from '../../OS';
|
||||
|
||||
type PropsType = Readonly<{ containerWidthBreakpoint: WidthBreakpoint }>;
|
||||
|
||||
const mapStateToProps = (state: StateType, ownProps: PropsType) => {
|
||||
return {
|
||||
...state.updates,
|
||||
hasNetworkDialog: hasNetworkDialog(state),
|
||||
i18n: getIntl(state),
|
||||
currentVersion: window.getVersion(),
|
||||
expirationTimestamp: getExpirationTimestamp(state),
|
||||
OS: getOSName(),
|
||||
...ownProps,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue