Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { inject, observer } from 'mobx-react';
import light from '@parity/light.js-react';

import Health from '../../Health';
import Feedback from './Feedback';

@light({
accountsInfo: () => accountsInfo$().pipe(withoutLoading())
Expand All @@ -36,6 +37,7 @@ class AccountsList extends Component {
const { accountsInfo } = this.props;

const accountsList = Object.keys(accountsInfo);
const accountsListLength = accountsList && accountsList.length;

return (
<div className='accounts-list'>
Expand All @@ -50,7 +52,7 @@ class AccountsList extends Component {

<div className='window_content'>
<div className='box -scroller'>
{accountsList.length ? (
{accountsListLength ? (
<ul className='list'>
{accountsList.map(address => (
<li
Expand Down Expand Up @@ -88,6 +90,9 @@ class AccountsList extends Component {
<div className='footer-nav_status'>
<Health />
</div>
<div className='footer-feedback'>
<Feedback accountsListLength={accountsListLength} />
</div>
</nav>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: BSD-3-Clause

import React from 'react';

export const Feedback = ({ accountsListLength }) => (
<a
className='feedback'
href='https://github.com/paritytech/fether/issues/new'
target='_blank'
style={{ marginBottom: accountsListLength > 1 ? '-2px' : '-10px' }}
>
Feedback
</a>
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: BSD-3-Clause

import { Feedback } from './Feedback';

export default Feedback;
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
.footer-nav {
display: flex;
height: 3.5rem;
overflow: hidden;
flex-direction: row;
justify-content: space-between;
align-items: center; // default alignent for flex items

.footer-feedback {
align-self: flex-end; // override default alignment for individual flex item
margin-right: 15px;
margin-bottom: 0px;
padding: 0px;
border-radius: 4px;

.feedback {
color: $faint;
background: $grey;
font-size: 0.8em;
font-weight: 500;
border-radius: 5px 5px 0px 0px;
padding: 3px 8px 3px 8px;
box-shadow: 0.125rem 0.250rem 0.3rem 0 rgba($black, 0.3);
transition: box-shadow ease 0.250s;
&:hover {
color: $white;
background: $grey;
box-shadow: 0.125rem 0.275rem 0.3rem 0 rgba($black, 0.4);
}
}
}

.footer-nav_status {
padding: 1rem;
Expand Down