mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
22 lines
534 B
JavaScript
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)
|