Skip to content

Commit

Permalink
feat(cip-1694): add vote receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
vetalcore committed Jul 27, 2023
1 parent c18e6d5 commit 6de4eb3
Show file tree
Hide file tree
Showing 16 changed files with 571 additions and 329 deletions.
156 changes: 45 additions & 111 deletions ui/cip-1694/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ui/cip-1694/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"json-canonicalize": "^1.0.6",
"moment": "^2.29.4",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.1",
"react-redux": "^8.0.7",
Expand All @@ -45,9 +46,11 @@
"@testing-library/user-event": "^14.4.3",
"@types/cypress": "^1.1.3",
"@types/jest": "^27.5.2",
"@types/lodash": "^4.14.196",
"@types/node": "^17.0.45",
"@types/node-fetch": "^2.6.4",
"@types/react": "^18.2.6",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^18.2.4",
"cypress": "^12.14.0",
"eslint-plugin-cypress": "^2.13.3",
Expand Down
7 changes: 5 additions & 2 deletions ui/cip-1694/src/App.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.toast {
border-radius: 10px;
background: #030321;
padding: 0 !important;
border-radius: 8px !important;
background: #061d3c !important;
color: #fff;
min-width: auto !important;
width: auto !important;
}
3 changes: 1 addition & 2 deletions ui/cip-1694/src/common/api/voteService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export const castAVoteWithDigitalSignature = async (jsonRequest: SignedWeb3Reque
HttpMethods.POST,
CAST_VOTE_URL,
DEFAULT_CONTENT_TYPE_HEADERS,
JSON.stringify(jsonRequest),
false
JSON.stringify(jsonRequest)
);

export const getSlotNumber = async () => {
Expand Down
Loading

0 comments on commit 6de4eb3

Please sign in to comment.