From 1ffcfbebbf4924e82f6c0e71d18489ad67e8a955 Mon Sep 17 00:00:00 2001 From: Saliou Diallo Date: Fri, 12 Feb 2021 14:17:18 -0500 Subject: [PATCH] Merge pull request #58 from AudiusProject/saliou-aud-266 Display 3box name and fallback to address --- packages/protocol-dashboard/.gitignore | 4 +++- packages/protocol-dashboard/README.md | 8 ++++++-- .../src/components/VotesTable/VotesTable.tsx | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/protocol-dashboard/.gitignore b/packages/protocol-dashboard/.gitignore index a7a4efe64ab..2e6aac204e6 100644 --- a/packages/protocol-dashboard/.gitignore +++ b/packages/protocol-dashboard/.gitignore @@ -29,4 +29,6 @@ yarn-error.log* *.swo *.swn -.vscode/** \ No newline at end of file +.vscode/** + +.idea \ No newline at end of file diff --git a/packages/protocol-dashboard/README.md b/packages/protocol-dashboard/README.md index 44259ee2e95..3bc933bf5e5 100644 --- a/packages/protocol-dashboard/README.md +++ b/packages/protocol-dashboard/README.md @@ -2,13 +2,17 @@ ## Summary Audius Service Provider Dashboard allows users to register content nodes and discovery providers, -view your registered services & which ones are out date, and explore all audius services. +view their registered services & which ones are out date, and explore all audius services. ## Running the Application +The application requires ethereum contracts. +You can run `npm run start:stage` which will use the contracts that are on the staging environment. +If you want to have contracts running locally, you'll also need to run this [setup script](https://github.com/AudiusProject/audius-protocol/blob/master/service-commands/scripts/setup.js) e.g. `node setup.js run eth-contracts up` + To start: 1. Install Dependencies `npm install` -2. Run the Applicatin `npm run start` +2. Run the Application `npm run start:` To Deploy: Build the application using `npm run build` and serve the static `build` folder as a simple page app diff --git a/packages/protocol-dashboard/src/components/VotesTable/VotesTable.tsx b/packages/protocol-dashboard/src/components/VotesTable/VotesTable.tsx index e442f4eecde..6d238f3dee6 100644 --- a/packages/protocol-dashboard/src/components/VotesTable/VotesTable.tsx +++ b/packages/protocol-dashboard/src/components/VotesTable/VotesTable.tsx @@ -20,7 +20,7 @@ const User = ({ wallet }: { wallet: Address }) => {
{user?.image && User}
- {formatShortWallet(wallet)} + {user?.name || formatShortWallet(wallet)} ) }