Move all status/alert dialogs into the Left Pane

This commit is contained in:
Josh Perez 2020-02-12 13:30:58 -08:00 committed by GitHub
parent 101070bf42
commit 18fd44f504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 1298 additions and 607 deletions

View file

@ -0,0 +1,18 @@
import { connect } from 'react-redux';
import { mapDispatchToProps } from '../actions';
import { UpdateDialog } from '../../components/UpdateDialog';
import { StateType } from '../reducer';
import { getIntl } from '../selectors/user';
import { hasNetworkDialog } from '../selectors/network';
const mapStateToProps = (state: StateType) => {
return {
...state.updates,
hasNetworkDialog: hasNetworkDialog(state),
i18n: getIntl(state),
};
};
const smart = connect(mapStateToProps, mapDispatchToProps);
export const SmartUpdateDialog = smart(UpdateDialog);