Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadessu committed Oct 11, 2024
1 parent e760b81 commit 58f0ba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import TokenIcon from '../../../TokenIcon/TokenIcon';
import { useContext } from 'react';
import { TokenContext } from '../../../../../contexts/TokenContext';
import { getFormattedNumber } from '../../../../../ambient-utils/dataLayer';
import useMediaQuery from '../../../../../utils/hooks/useMediaQuery';

type ItemIF = {
slug: string;
Expand Down Expand Up @@ -42,6 +43,8 @@ interface propsIF {
}

export default function PriceInfo(props: propsIF) {
const showMobileVersion = useMediaQuery('(max-width: 768px)');

const {
limitOrder,
isBid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { useContext } from 'react';
import { TokenContext } from '../../../../../contexts/TokenContext';
import { ChainDataContext } from '../../../../../contexts/ChainDataContext';
import useMediaQuery from '../../../../../utils/hooks/useMediaQuery';

interface propsIF {
position: PositionIF;
Expand Down Expand Up @@ -40,6 +41,8 @@ interface propsIF {
}

export default function PriceInfo(props: propsIF) {
const showMobileVersion = useMediaQuery('(max-width: 768px)');

const {
usdValue,
lowRangeDisplay,
Expand Down

0 comments on commit 58f0ba8

Please sign in to comment.