From 26348f08687e27acb52968dbdd199478c96c5aa0 Mon Sep 17 00:00:00 2001 From: Martina Date: Fri, 31 Jul 2020 20:44:16 -0700 Subject: [PATCH] friends list --- components/sidebars/SidebarAddFileToBucket.js | 10 +- .../sidebars/SidebarCreatePaymentChannel.js | 5 +- components/sidebars/SidebarCreateSlate.js | 10 +- .../sidebars/SidebarCreateWalletAddress.js | 10 +- .../sidebars/SidebarDeleteWalletAddress.js | 10 +- components/sidebars/SidebarFileStorageDeal.js | 10 +- components/sidebars/SidebarWalletSendFunds.js | 10 +- components/system/SystemPage.js | 5 + components/system/components/Buttons.js | 124 ++++++--- components/system/components/Table.js | 122 +++++---- .../components/fragments/TableComponents.js | 7 +- components/system/index.js | 2 + .../system/modules/CreateFilecoinAddress.js | 13 +- .../modules/CreateFilecoinStorageDeal.js | 13 +- components/system/modules/CreateToken.js | 6 +- .../system/modules/FilecoinDealsList.js | 2 +- components/system/modules/FriendsList.js | 245 ++++++++++++++++++ .../system/modules/SendAddressFilecoin.js | 9 +- components/system/svg.js | 18 ++ pages/experiences/friends-list.js | 195 ++++++++++++++ pages/system/buttons.js | 26 +- pages/system/carousel.js | 10 +- pages/system/modals.js | 10 +- pages/system/notifications.js | 94 ++++--- scenes/SceneSignIn.js | 5 +- 25 files changed, 769 insertions(+), 202 deletions(-) create mode 100644 components/system/modules/FriendsList.js create mode 100644 pages/experiences/friends-list.js diff --git a/components/sidebars/SidebarAddFileToBucket.js b/components/sidebars/SidebarAddFileToBucket.js index 28f6c410..1bbd323e 100644 --- a/components/sidebars/SidebarAddFileToBucket.js +++ b/components/sidebars/SidebarAddFileToBucket.js @@ -79,22 +79,24 @@ export default class SidebarAddFileToBucket extends React.Component { ) : null} - Add file - + {!this.props.fileLoading ? ( - Cancel - + ) : null} ); diff --git a/components/sidebars/SidebarCreatePaymentChannel.js b/components/sidebars/SidebarCreatePaymentChannel.js index 11a42cd0..f7ac812a 100644 --- a/components/sidebars/SidebarCreatePaymentChannel.js +++ b/components/sidebars/SidebarCreatePaymentChannel.js @@ -87,12 +87,13 @@ export default class SidebarCreatePaymentChannel extends React.Component {
Total Filecoin
- Send - + ); } diff --git a/components/sidebars/SidebarCreateSlate.js b/components/sidebars/SidebarCreateSlate.js index 847ecc3c..e5dfaf4f 100644 --- a/components/sidebars/SidebarCreateSlate.js +++ b/components/sidebars/SidebarCreateSlate.js @@ -64,20 +64,22 @@ export default class SidebarCreateSlate extends React.Component { {this.props.viewer.username}/{Strings.createSlug(this.state.name)} - Create {this.state.name} - + - Cancel - + ); } diff --git a/components/sidebars/SidebarCreateWalletAddress.js b/components/sidebars/SidebarCreateWalletAddress.js index 12d9d55e..274a763d 100644 --- a/components/sidebars/SidebarCreateWalletAddress.js +++ b/components/sidebars/SidebarCreateWalletAddress.js @@ -89,20 +89,22 @@ export default class SidebarCreateWalletAddress extends React.Component { Make this wallet the default - Create {this.state.name} - + - Cancel - + ); } diff --git a/components/sidebars/SidebarDeleteWalletAddress.js b/components/sidebars/SidebarDeleteWalletAddress.js index fbd3e506..4f672ed1 100644 --- a/components/sidebars/SidebarDeleteWalletAddress.js +++ b/components/sidebars/SidebarDeleteWalletAddress.js @@ -27,19 +27,21 @@ export default class SidebarDeleteWalletAddress extends React.Component { Are you sure you want to delete the selected wallet? - Delete - + - Cancel - + ); } diff --git a/components/sidebars/SidebarFileStorageDeal.js b/components/sidebars/SidebarFileStorageDeal.js index f38085cf..7c84164d 100644 --- a/components/sidebars/SidebarFileStorageDeal.js +++ b/components/sidebars/SidebarFileStorageDeal.js @@ -138,21 +138,23 @@ export default class SidebarFileStorageDeal extends React.Component { options={this.props.viewer.addresses} /> - Make storage deal - + {!this.props.sidebarLoading ? ( - Cancel deal - + ) : null} ); diff --git a/components/sidebars/SidebarWalletSendFunds.js b/components/sidebars/SidebarWalletSendFunds.js index cbbd5252..6ba4d0c8 100644 --- a/components/sidebars/SidebarWalletSendFunds.js +++ b/components/sidebars/SidebarWalletSendFunds.js @@ -116,20 +116,22 @@ export default class SidebarWalletSendFunds extends React.Component {
Total Filecoin
- Send - + - Cancel - + ); } diff --git a/components/system/SystemPage.js b/components/system/SystemPage.js index 675cf847..9617cfde 100644 --- a/components/system/SystemPage.js +++ b/components/system/SystemPage.js @@ -222,6 +222,11 @@ export default class SystemPage extends React.Component { href="/experiences/filecoin-settings" title="FilecoinSettings" /> + { + if (props.full) { + if (props.loading) { + return ( + + ); + } + + if (props.type === "label") { + return ( +