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

46 lines
1.2 KiB
JavaScript
Raw Normal View History

import styled from 'styled-components';
import PropTypes from 'prop-types';
2018-02-20 09:30:36 +00:00
import React from 'react';
2018-03-08 16:10:53 +00:00
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import colors from '~/js/config/colors';
2018-05-18 16:38:02 +00:00
import * as LogActions from '~/js/actions/LogActions';
const Wrapper = styled.div`
width: 100%;
font-size: 12px;
color: ${colors.TEXT_SECONDARY};
padding: 22px 48px;
border-top: 1px solid ${colors.DIVIDER};
display: flex;
`;
const A = styled.a`
margin: 0px 6px;
margin-right: 20px;
`;
const Copy = styled.div`
margin-right: 20px;
`;
const Footer = ({ toggle }) => (
<Wrapper>
<Copy>© 2018</Copy>
<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={toggle} className="green">Show Log</A>
</Wrapper>
2018-07-30 10:52:13 +00:00
);
Footer.propTypes = {
toggle: PropTypes.func.isRequired,
};
const mapDispatchToProps = dispatch => ({
toggle: bindActionCreators(LogActions.toggle, dispatch),
});
2018-02-20 09:30:36 +00:00
export default connect(null, mapDispatchToProps)(Footer);