Skip to content

Commit

Permalink
fix links should open new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoYhun committed Oct 31, 2023
1 parent a6b97aa commit c9b4afc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pages/TrueSightV2/components/table/LiquidityMarkets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ const useRenderLiquidityMarkets = (activeTab: ChartTab, type?: LIQUIDITY_MARKETS
as="a"
href={item.marketUrl}
target="_blank"
rel="noreferrer"
color={theme.primary}
style={{ padding: '6px' }}
>
Expand Down Expand Up @@ -223,7 +224,14 @@ const useRenderLiquidityMarkets = (activeTab: ChartTab, type?: LIQUIDITY_MARKETS
</td>
<td>
<Row justify="flex-end">
<ButtonAction as="a" href={item.trade_url} color={theme.primary} style={{ padding: '6px' }}>
<ButtonAction
as="a"
href={item.trade_url}
target="_blank"
rel="noreferrer"
color={theme.primary}
style={{ padding: '6px' }}
>
<Icon id="open-link" size={16} />
</ButtonAction>
</Row>
Expand Down

0 comments on commit c9b4afc

Please sign in to comment.