diff options
author | kumavis <aaron@kumavis.me> | 2018-06-14 14:30:31 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-06-14 14:30:31 +0800 |
commit | 44a8e48a04ea69e1f8e530ae1bacf55890f8df98 (patch) | |
tree | 5c344b5cb746b35504edb4b2903b2e533db527f6 /mascara | |
parent | ac8b56a00defff4cb44a6a34251a19d8ab6159b6 (diff) | |
download | dexon-wallet-44a8e48a04ea69e1f8e530ae1bacf55890f8df98.tar.gz dexon-wallet-44a8e48a04ea69e1f8e530ae1bacf55890f8df98.tar.zst dexon-wallet-44a8e48a04ea69e1f8e530ae1bacf55890f8df98.zip |
notices - replace getLatestNotice with getNextNotice
Diffstat (limited to 'mascara')
-rw-r--r-- | mascara/src/app/first-time/notice-screen.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mascara/src/app/first-time/notice-screen.js b/mascara/src/app/first-time/notice-screen.js index a449ccfa..8cb6f105 100644 --- a/mascara/src/app/first-time/notice-screen.js +++ b/mascara/src/app/first-time/notice-screen.js @@ -14,7 +14,7 @@ import LoadingScreen from './loading-screen' class NoticeScreen extends Component { static propTypes = { address: PropTypes.string.isRequired, - lastUnreadNotice: PropTypes.shape({ + nextUnreadNotice: PropTypes.shape({ title: PropTypes.string, date: PropTypes.string, body: PropTypes.string, @@ -31,7 +31,7 @@ class NoticeScreen extends Component { }; static defaultProps = { - lastUnreadNotice: {}, + nextUnreadNotice: {}, }; state = { @@ -47,8 +47,8 @@ class NoticeScreen extends Component { } acceptTerms = () => { - const { markNoticeRead, lastUnreadNotice, history } = this.props - markNoticeRead(lastUnreadNotice) + const { markNoticeRead, nextUnreadNotice, history } = this.props + markNoticeRead(nextUnreadNotice) .then(hasActiveNotices => { if (!hasActiveNotices) { history.push(INITIALIZE_BACKUP_PHRASE_ROUTE) @@ -72,7 +72,7 @@ class NoticeScreen extends Component { render () { const { address, - lastUnreadNotice: { title, body }, + nextUnreadNotice: { title, body }, isLoading, } = this.props const { atBottom } = this.state @@ -113,12 +113,12 @@ class NoticeScreen extends Component { } const mapStateToProps = ({ metamask, appState }) => { - const { selectedAddress, lastUnreadNotice, noActiveNotices } = metamask + const { selectedAddress, nextUnreadNotice, noActiveNotices } = metamask const { isLoading } = appState return { address: selectedAddress, - lastUnreadNotice, + nextUnreadNotice, noActiveNotices, isLoading, } |