1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/app/components/ui-migration-annoucement/ui-migration-announcement.container.js
2019-02-05 08:49:55 -03:30

22 lines
534 B
JavaScript

import { connect } from 'react-redux'
import UiMigrationAnnouncement from './ui-migration-annoucement.component'
import { setCompletedUiMigration } from '../../actions'
const mapStateToProps = (state) => {
const shouldShowAnnouncement = !state.metamask.completedUiMigration
return {
shouldShowAnnouncement,
}
}
const mapDispatchToProps = dispatch => {
return {
onClose () {
dispatch(setCompletedUiMigration())
},
}
}
export default connect(mapStateToProps, mapDispatchToProps)(UiMigrationAnnouncement)