Skip to content

Commit

Permalink
fix(suite): added missing stake buttons to table assets view in dashb…
Browse files Browse the repository at this point in the history
…oard
  • Loading branch information
TomasBoda authored and tomasklim committed Feb 26, 2025
1 parent 21292fd commit fce4f90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const AssetRow = memo(
localCurrency,
currentFiatRates,
accounts,
isStakeNetwork,
}: AssetTableRowProps) => {
const { symbol } = network;
const dispatch = useDispatch();
Expand Down Expand Up @@ -169,6 +170,12 @@ export const AssetRow = memo(
</Table.Cell>
<Table.Cell align="right" colSpan={2}>
<Row gap={spacings.md}>
{isStakeNetwork && (
<TradingButton symbol={symbol} routeName="wallet-staking">
<Translation id="TR_STAKE_STAKE" />
</TradingButton>
)}

{!isTestnet(symbol) && (
<TradingButton
symbol={symbol}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const AssetTable = ({
localCurrency={localCurrency}
currentFiatRates={currentFiatRates}
accounts={asset.accounts}
isStakeNetwork={asset.isStakeNetwork}
/>
))}
{discoveryInProgress && <AssetRowSkeleton />}
Expand Down

0 comments on commit fce4f90

Please sign in to comment.