Skip to content

Commit

Permalink
fix: add a lil market link to the orders popup (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo authored Nov 25, 2024
1 parent 00dce4a commit 4145f23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/dialogs/DetailsDialog/OrderDetailsDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { OrderFlags, OrderSide } from '@dydxprotocol/v4-client-js';
import { shallowEqual } from 'react-redux';
import { Link } from 'react-router-dom';

import {
AbacusMarginMode,
Expand All @@ -11,6 +12,7 @@ import { ButtonAction } from '@/constants/buttons';
import { DialogProps, OrderDetailsDialogProps } from '@/constants/dialogs';
import { STRING_KEYS, type StringKey } from '@/constants/localization';
import { isMainnet } from '@/constants/networks';
import { AppRoute } from '@/constants/routes';
import { CancelOrderStatuses } from '@/constants/trade';

import { useParameterizedSelector } from '@/hooks/useParameterizedSelector';
Expand Down Expand Up @@ -104,7 +106,11 @@ export const OrderDetailsDialog = ({
{
key: 'market',
label: stringGetter({ key: STRING_KEYS.MARKET }),
value: displayId,
value: (
<Link to={`${AppRoute.Trade}/${marketId}`} tw="underline">
{displayId}
</Link>
),
},
{
key: 'market-id',
Expand Down

0 comments on commit 4145f23

Please sign in to comment.