Skip to content

Commit

Permalink
remove dot from info banner
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Nov 30, 2023
1 parent 0489a54 commit 9f12a4d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 0 additions & 1 deletion trade.renegade.fi/components/banners/relayer-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ export class RelayerStatusBanner extends React.Component<
<Text>Relayer 0.08%</Text>
<BannerSeparator flexGrow={1} />
<Text>Protocol 0.02%</Text>
<BannerSeparator flexGrow={3} />
<Spacer flexGrow="2" />
</Flex>
</Box>
Expand Down
18 changes: 13 additions & 5 deletions trade.renegade.fi/components/task-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,19 @@ export const TaskStatus = () => {

useEffect(() => {
if (
taskState === prevTaskState.current &&
taskType === prevTaskType.current
(taskState === prevTaskState.current &&
taskType === prevTaskType.current) ||
!taskState ||
!taskType
) {
return
}
const currentTime = Date.now()
// TODO: Test this
const nextTaskDuration = TASK_TO_LATENCY[taskType][taskState]
if (nextTaskDuration < 5000) {
return // Stay on the current status until the next status update occurs
}
setTaskStartTime(currentTime)
prevTaskState.current = taskState
prevTaskType.current = taskType
Expand Down Expand Up @@ -141,10 +148,11 @@ export const TaskStatus = () => {
const displayedTaskState = {
[TaskState.Proving]: "Generating ZK Proof",
[TaskState.SubmittingTx]: "Submitting Transaction",
[TaskState.FindingOpening]: "Verifying ZK Proof",
[TaskState.FindingOpening]: "Finding New Merkle Opening",
// TODO: Make sure this works for CreateNewWalletTask
// @ts-ignore
[TaskState.FindingOpening]: "Verifying ZK Proof",
[TaskState.UpdatingValidityProofs]: "Verifying ZK Proof",
[TaskState.FindingMerkleOpening]: "Finding New Merkle Opening",
[TaskState.UpdatingValidityProofs]: "Updating Validity Proofs",
[TaskState.Completed]: "Completed",
}[taskState || TaskState.Proving] // If taskState is undefined, we won't use this displayedTaskState anyway.

Expand Down

0 comments on commit 9f12a4d

Please sign in to comment.