Skip to content

Commit

Permalink
better not found state in trade page
Browse files Browse the repository at this point in the history
  • Loading branch information
zavelevsky committed Jul 16, 2024
1 parent 51e7cad commit bb19ced
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/trade/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useEffect } from 'react';
import { lsService } from 'services/localeStorage';
import { CarbonLogoLoading } from 'components/common/CarbonLogoLoading';
import { getLastVisitedPair, useNavigate, useSearch } from 'libs/routing';
import { NotFound } from 'components/common/NotFound';

export type TradePageProps = { base: Token; quote: Token };

Expand Down Expand Up @@ -48,7 +49,11 @@ export const TradePage = () => {
</div>
</div>
) : !pairFound ? (
<p>Pair not found</p>
<NotFound
variant="error"
title="We couldn't find any orders for this pair"
text="Try selecting a different token pair from the dropdown above."
/>
) : (
<div className="px-content mt-25 pb-30 xl:px-50 grid grid-cols-1 gap-20 md:grid-cols-12">
<div className="order-3 md:order-1 md:col-span-4 md:row-span-2">
Expand Down

0 comments on commit bb19ced

Please sign in to comment.