Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into fix-relative-time
Browse files Browse the repository at this point in the history
  • Loading branch information
michalinacienciala committed Nov 18, 2024
2 parents 7f03b0a + ec5496f commit 84be61b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import React from "react"
import { Box, Tag, TagLabel, Flex, TagLeftIcon } from "@chakra-ui/react"
import Spinner from "#/components/shared/Spinner"
import {
convertActivityTypeToLabel,
getEstimatedDuration,
isActivityCompleted,
} from "#/utils"
import { getEstimatedDuration, isActivityCompleted } from "#/utils"
import { Activity } from "#/types"

export default function EstimatedDuration({
Expand All @@ -26,7 +22,7 @@ export default function EstimatedDuration({
color="gold.400"
emptyColor="brand.400"
/>
<TagLabel>{`${convertActivityTypeToLabel(activity.type)} transaction pending...`}</TagLabel>
<TagLabel>In progress...</TagLabel>
</Tag>
<Tag variant="solid">
<TagLabel display="flex" gap={1}>
Expand Down
6 changes: 0 additions & 6 deletions dapp/src/utils/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,3 @@ export function getEstimatedDuration(

return "3 hours"
}

export function convertActivityTypeToLabel(type: ActivityType): string {
if (isWithdrawType(type)) return "Unstaking"

return "Staking"
}

0 comments on commit 84be61b

Please sign in to comment.