Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
- added comments `TODO`
- updated mock data
- updated `TransactionInfo `type
  • Loading branch information
kkosiorowska committed Jan 22, 2024
1 parent 6693839 commit 6ba3494
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { StakeHistory } from "#/types"
export const TRANSACTIONS: StakeHistory[] = [
{
callTx: {
timestamp: 1700179973,
timestamp: 1705918304,
chain: "bitcoin",
action: "stake",
asset: {
Expand Down Expand Up @@ -41,7 +41,7 @@ export const TRANSACTIONS: StakeHistory[] = [
account: "2MsjRekULh27YSM17p8gSNkVvbXw6wc4kcZ",
txHash:
"925c8910775c1842fbcfee782104d0d9934dde6f0ca00d393858fcbe8ac90eb7",
status: "pending",
status: "syncing",
},
receiptTx: {
timestamp: 1700578973,
Expand All @@ -52,9 +52,6 @@ export const TRANSACTIONS: StakeHistory[] = [
amount: 614000000,
},
account: "0x208e94d5661a73360d9387d3ca169e5c130090cd",
txHash:
"0xf612b8999e765f9631c5e32a9f424a097936da1c527953e78dc8da20f65bc3ee",
status: "pending",
},
},
{
Expand Down
2 changes: 2 additions & 0 deletions dapp/src/components/shared/StatusInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type StatusInfoProps = {
withIcon?: boolean
} & TextProps

// TODO: Update component for syncing status.
// Add a timer when the logic is ready.
export default function StatusInfo({
status,
withDefaultColor,
Expand Down
1 change: 1 addition & 0 deletions dapp/src/components/shared/ViewInBlockExplorer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function ViewInBlockExplorer({
}: ViewInBlockExplorerProps) {
const { link, title } = createLinkToBlockExplorerForChain(chain, id, type)

// TODO: Update when ButtonLink is ready
return (
<Link href={link} isExternal {...linkProps}>
{text ?? title}
Expand Down
3 changes: 2 additions & 1 deletion dapp/src/types/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export type TransactionInfo = {
asset: Asset
account: string
txHash?: string
status: TransactionInfoStatus
// TODO: Update when statuses for transactions are determined
status?: TransactionInfoStatus
}

export type StakeHistory = {
Expand Down

0 comments on commit 6ba3494

Please sign in to comment.