Skip to content

Commit

Permalink
reusing existing constant values
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Aug 22, 2024
1 parent f6cb33f commit c81f1ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"eslint": "lerna run eslint --stream",
"flow": "lerna run flow --stream",
"tsc": "lerna run tsc --stream",
"test": "lerna run test --stream",
"translations:purge": "lerna run translations:purge -- stream",
"archive:src": "func() { git rev-parse HEAD > COMMIT && git rev-parse --abbrev-ref HEAD > BRANCH && git archive --format zip --add-file COMMIT --add-file BRANCH -o $1 HEAD && rm COMMIT BRANCH; }; func"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import {
DREP_ALWAYS_ABSTAIN as API_ABSTAIN,
DREP_ALWAYS_NO_CONFIDENCE as API_NO_CONFIDENCE,
} from '../../../../api/ada/lib/storage/bridge/delegationUtils'

export const BECOME_DREP_LINK = 'https://emurgohelpdesk.zendesk.com/hc/en-us/articles/8600742035855-Who-are-DReps-on-Cardano';
export const LEARN_MORE_LINK = 'https://emurgohelpdesk.zendesk.com/hc/en-us/sections/8582793481231-Governance';

export const DREP_ALWAYS_ABSTAIN = 'ALWAYS_ABSTAIN';
export const DREP_ALWAYS_NO_CONFIDENCE = 'ALWAYS_NO_CONFIDENCE';
export const DREP_ALWAYS_ABSTAIN = API_ABSTAIN;
export const DREP_ALWAYS_NO_CONFIDENCE = API_NO_CONFIDENCE;
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const Container = styled(Box)(() => ({

export const mapStatus = {
delegate: 'Delegate to a Drep',
ALWAYS_ABSTAIN: 'Abstain',
ALWAYS_NO_CONFIDENCE: 'No Confidence',
[DREP_ALWAYS_ABSTAIN]: 'Abstain',
[DREP_ALWAYS_NO_CONFIDENCE]: 'No Confidence',
};

export const GovernanceStatusSelection = () => {
Expand Down

0 comments on commit c81f1ca

Please sign in to comment.