Skip to content

Commit

Permalink
Added stepper
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiipsa committed Mar 15, 2023
1 parent 20b03b1 commit 4ae821d
Show file tree
Hide file tree
Showing 5 changed files with 832 additions and 100 deletions.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"@types/styled-components": "^5.1.26",
"@web3modal/ethereum": "^2.1.1",
"@web3modal/react": "^2.1.1",
"antd": "^5.3.1",
"axios": "^0.21.1",
"babel-plugin-styled-components": "^2.0.7",
"bn.js": "^5.2.1",
Expand Down
12 changes: 12 additions & 0 deletions client/src/components/process-status/ProcessStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ type Props = {
status: ProcessStatusItem
}

export const psHelpers = {
isIdle(ps: ProcessStatusItem) {
return ps.type === ProcessStatusTypes.IDLE
},
isProgress(ps: ProcessStatusItem) {
return ps.type === ProcessStatusTypes.PROGRESS
},
isError(ps: ProcessStatusItem) {
return ps.type === ProcessStatusTypes.ERROR
},
}

export const ProcessStatus: React.FC<Props> = ({ status }) => {
const { type = ProcessStatusTypes.PROGRESS, render = '' } = status
return (
Expand Down
Loading

0 comments on commit 4ae821d

Please sign in to comment.