diff options
Diffstat (limited to 'ui/app/components/ui-migration-annoucement/ui-migration-announcement.container.js')
-rw-r--r-- | ui/app/components/ui-migration-annoucement/ui-migration-announcement.container.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/ui/app/components/ui-migration-annoucement/ui-migration-announcement.container.js b/ui/app/components/ui-migration-annoucement/ui-migration-announcement.container.js deleted file mode 100644 index 6dc993b87..000000000 --- a/ui/app/components/ui-migration-annoucement/ui-migration-announcement.container.js +++ /dev/null @@ -1,21 +0,0 @@ -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) |