@@ -74,7 +86,6 @@ class Peers extends Component {
-
@@ -89,10 +100,13 @@ class Peers extends Component {
-
-
+
+ {
+ this.state.refreshing ?
+
+ :
+ 'Refresh'
+ }
@@ -107,7 +121,17 @@ class Peers extends Component {
}
Peers.propTypes = {
-
+ fetchPeers: PropTypes.func.isRequired,
+ peerFormProps: PropTypes.object.isRequired,
+ setPeerForm: PropTypes.func.isRequired,
+ setPeer: PropTypes.func.isRequired,
+ updateSearchQuery: PropTypes.func.isRequired,
+ disconnectRequest: PropTypes.func.isRequired,
+
+ peerModalOpen: PropTypes.bool.isRequired,
+ filteredPeers: PropTypes.array.isRequired,
+ peer: PropTypes.object,
+ searchQuery: PropTypes.string
}
export default Peers
diff --git a/app/routes/peers/components/Peers.scss b/app/routes/peers/components/Peers.scss
index 79e15e8a..ad152ccd 100644
--- a/app/routes/peers/components/Peers.scss
+++ b/app/routes/peers/components/Peers.scss
@@ -1,7 +1,7 @@
@import '../../../variables.scss';
.search {
- height: 75px;
+ height: 55px;
padding: 2px 25px;
border-top: 1px solid $darkgrey;
border-bottom: 1px solid $darkgrey;
@@ -15,8 +15,8 @@
.label {
width: 5%;
- line-height: 70px;
- font-size: 25px;
+ line-height: 50px;
+ font-size: 20px;
text-align: center;
cursor: pointer;
}
@@ -27,8 +27,8 @@
padding: 0;
border: 0;
border-radius: 0;
- height: 68px;
- font-size: 18px;
+ height: 50px;
+ font-size: 16px;
}
}
@@ -36,58 +36,43 @@
display: flex;
flex-direction: row;
justify-content: space-between;
+ background: $lightgrey;
.titleContainer {
- padding: 40px;
+ padding: 20px 40px;
.left {
padding: 10px 0;
- }
-
- .left, span {
- display: inline-block;
- }
-
- .identityPubkey {
- font-size: 30px;
- margin-right: 10px;
- display: flex;
- flex-direction: row;
- .userIcon {
- margin-right: 10px;
- }
-
- section h4 {
- font-size: 10px;
+ h1 {
text-transform: uppercase;
- letter-spacing: 1.2px;
- }
-
- section h2 {
- font-size: 14px;
- margin-top: 5px;
+ font-size: 26px;
+ margin-right: 5px;
}
}
}
.addPeerContainer {
- padding: 40px;
+ padding: 20px 40px;
.newPeerButton {
font-size: 14px;
+ margin-left: 10px;
}
}
}
.refreshContainer {
- display: flex;
- flex-direction: row;
- padding: 20px 40px 0px 40px;
+ padding: 20px 40px 0 40px;
+ text-align: right;
+ cursor: pointer;
.refresh {
- cursor: pointer;
- color: $bluegrey;
+ text-decoration: underline;
+
+ svg {
+ font-size: 12px;
+ }
}
}