Skip to content

Commit

Permalink
[AUD 26] Cleanup Dashboard Events (#43)
Browse files Browse the repository at this point in the history
* Added events to serviceProviderClient

* Setup prettier format on save

* Change staging -> stage

* Delegate events added

* Claim events added

* Update hook

* Update timeline generation

* Fix dumb bug

* PR cleanups

* PR revisions 1

* PR revisions 2

* PR revisions 3
  • Loading branch information
piazzatron authored and michellebrier committed Oct 9, 2023
1 parent cfe6adf commit 75e9e6b
Show file tree
Hide file tree
Showing 31 changed files with 1,099 additions and 660 deletions.
5 changes: 1 addition & 4 deletions packages/protocol-dashboard/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ jobs:
at: ./
- run:
name: build
command: npm run build:staging
command: npm run build:stage
- persist_to_workspace:
root: ./
paths:
- build


deploy-staging:
working_directory: ~/protocol-dashboard
docker:
Expand Down Expand Up @@ -87,7 +86,6 @@ jobs:
paths:
- build


deploy-prod:
working_directory: ~/protocol-dashboard
docker:
Expand Down Expand Up @@ -136,4 +134,3 @@ workflows:
filters:
branches:
only: /^main$/

File renamed without changes.
2 changes: 2 additions & 0 deletions packages/protocol-dashboard/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ yarn-error.log*
*.swp
*.swo
*.swn

.vscode/**
4 changes: 4 additions & 0 deletions packages/protocol-dashboard/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"semi": false
}
6 changes: 3 additions & 3 deletions packages/protocol-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"publish-scripts": "./scripts/publishScripts.sh",
"configure-local-env": "node ./configureLocalEnv.js",
"start": "react-scripts start",
"start:development": "npm run configure-local-env && npm start",
"start:staging": "env-cmd -f .env.staging npm start",
"start:dev": "npm run configure-local-env && npm start",
"start:stage": "env-cmd -f .env.stage npm start",
"start:prod": "env-cmd -f .env.prod npm start",
"build": "react-scripts build",
"build:staging": "env-cmd -f .env.staging npm run build",
"build:stage": "env-cmd -f .env.stage npm run build",
"build:prod": "env-cmd -f .env.prod npm run build",
"test": "react-scripts test",
"eject": "react-scripts eject",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { ReactNode } from 'react'
import clsx from 'clsx'
import SimpleBar from 'simplebar-react'
import BN from 'bn.js'

import AudiusClient from 'services/Audius'
import { IconArrow, ButtonType } from '@audius/stems'
Expand Down Expand Up @@ -87,7 +88,7 @@ type OldStakeProps = {
className?: string
title: string
oldStakeAmount: BigNumber
stakeDiff: BigNumber
stakeDiff: BigNumber | null
isIncrease: boolean
}
export const OldStake: React.FC<OldStakeProps> = props => {
Expand All @@ -106,7 +107,7 @@ export const OldStake: React.FC<OldStakeProps> = props => {
})}
>
{`${props.isIncrease ? '+' : '-'} ${AudiusClient.displayAud(
props.stakeDiff
props.stakeDiff ?? new BN('0')
)}`}
</div>
</Box>
Expand Down
Loading

0 comments on commit 75e9e6b

Please sign in to comment.