diff --git a/src/components/charts/depthChart.tsx b/src/components/charts/depthChart.tsx index 6565eec7..12845ec2 100644 --- a/src/components/charts/depthChart.tsx +++ b/src/components/charts/depthChart.tsx @@ -635,10 +635,7 @@ const DepthChart = ({ return ( <> - {/* - // ! Width should be the same as that of the OHLCChart - */} - +
{ // ! Width should be the same as that of the DepthChart return ( - + {isLoading && error === undefined ? ( ) : error !== undefined ? ( @@ -618,7 +618,7 @@ const OHLCChart = ({ asset1Token, asset2Token }: OHLCChartProps) => { { diff --git a/src/pages/pair/[...params].tsx b/src/pages/pair/[...params].tsx index 699f33f1..953cd75c 100644 --- a/src/pages/pair/[...params].tsx +++ b/src/pages/pair/[...params].tsx @@ -12,7 +12,8 @@ import { HStack, Input, Button, - ButtonGroup + ButtonGroup, + Stack } from "@chakra-ui/react"; import { useSearchParams } from "next/navigation"; import { @@ -37,7 +38,7 @@ export default function TradingPairs() { const [isChartLoading, setIsChartLoading] = useState(true); const [error, setError] = useState(); const searchParams = useSearchParams(); - const [activeChart, setActiveChart] = useState<"Depth" | "OHLC" >("Depth"); + const [activeChart, setActiveChart] = useState<"Depth" | "OHLC">("Depth"); // Pairs are in the form of baseToken:quoteToken const router = useRouter(); @@ -592,27 +593,32 @@ export default function TradingPairs() { ) : !isChartLoading && !error ? ( -
- +
+ - - - <> + + +