diff --git a/src/reducers/TrezorConnectReducer.js b/src/reducers/TrezorConnectReducer.js index 825d9c6b..6d032e14 100644 --- a/src/reducers/TrezorConnectReducer.js +++ b/src/reducers/TrezorConnectReducer.js @@ -13,7 +13,7 @@ export type LatestBridge = { version: Array; directory: string; packages: Array<{ name: string; url: string; signature?: string; preferred: boolean; }>; - changelog: string; + changelog: Array; } export type State = { @@ -48,7 +48,7 @@ const initialState: State = { version: [], directory: '', packages: [], - changelog: '', + changelog: [], }, }, browserState: {}, diff --git a/src/views/Landing/components/InstallBridge/index.js b/src/views/Landing/components/InstallBridge/index.js index b9873aaa..02dce7a7 100644 --- a/src/views/Landing/components/InstallBridge/index.js +++ b/src/views/Landing/components/InstallBridge/index.js @@ -115,6 +115,10 @@ export default class InstallBridge extends Component { if (!this.state.target) { return ; } + + const changelog = this.props.transport.bridge.changelog.map(entry => ( +
  • {entry}
  • + )); const url = `${this.state.uri}${this.state.target.value}`; return ( @@ -140,7 +144,8 @@ export default class InstallBridge extends Component {

    - Learn more about latest version in + { changelog } + Learn more about latest versions in { >Changelog

    - -

    - No, i dont want to upgrade Bridge now, -

    -

    - Take me back to the wallet -

    - + {this.props.transport.type && ( + +

    + No, i dont want to upgrade Bridge now, +

    +

    + Take me back to the wallet +

    +
    + )}
    ); }