1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-10-31 21:18:54 +00:00
trezor-wallet/src/js/components/common/Footer.js

38 lines
993 B
JavaScript
Raw Normal View History

2018-02-20 09:30:36 +00:00
/* @flow */
'use strict';
import React from 'react';
2018-03-08 16:10:53 +00:00
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
2018-05-18 16:38:02 +00:00
import * as LogActions from '~/js/actions/LogActions';
import type { State, Dispatch } from '~/js/flowtype';
2018-02-20 09:30:36 +00:00
2018-04-16 21:19:50 +00:00
type Props = {
toggle: typeof LogActions.toggle
}
const Footer = (props: Props): React$Element<string> => {
2018-02-20 09:30:36 +00:00
return (
<footer>
<span>© 2018</span>
2018-03-08 16:10:53 +00:00
<a href="http://satoshilabs.com" target="_blank" rel="noreferrer noopener" className="satoshi green">SatoshiLabs</a>
<a href="tos.pdf" target="_blank" rel="noreferrer noopener" className="green">Terms</a>
<a onClick={ props.toggle } className="green">Show Log</a>
2018-02-20 09:30:36 +00:00
</footer>
);
}
2018-03-08 16:10:53 +00:00
export default connect(
2018-04-16 21:19:50 +00:00
(state: State) => {
2018-03-08 16:10:53 +00:00
return {
}
},
2018-04-16 21:19:50 +00:00
(dispatch: Dispatch) => {
2018-03-08 16:10:53 +00:00
return {
toggle: bindActionCreators(LogActions.toggle, dispatch),
};
}
)(Footer);