Skip to content

Commit

Permalink
Merge pull request #1172 from bancorprotocol/simulator/hideMobile
Browse files Browse the repository at this point in the history
fix simulator mobile screen
  • Loading branch information
pingustar authored Apr 16, 2024
2 parents 84b5b11 + 634145a commit 9b4b0f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/simulator/result/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Link } from '@tanstack/react-router';
import { SimulatorMobilePlaceholder } from 'components/simulator/mobile-placeholder';
import { SimResultChart } from 'components/simulator/result/SimResultChart';
import { SimResultSummary } from 'components/simulator/result/SimResultSummary';
import { useSimulator } from 'components/simulator/result/SimulatorProvider';
import { useBreakpoints } from 'hooks/useBreakpoints';
import { useCallback, useEffect } from 'react';
import { ReactComponent as IconChevronLeft } from 'assets/icons/chevron-left.svg';
import { wait } from 'utils/helpers';
Expand All @@ -25,6 +27,10 @@ export const SimulatorResultPage = () => {
handleAnimationStart();
}, [handleAnimationStart]);

const { aboveBreakpoint } = useBreakpoints();

if (!aboveBreakpoint('md')) return <SimulatorMobilePlaceholder />;

return (
<div className="p-20">
{simulationType === 'recurring' && (
Expand Down

0 comments on commit 9b4b0f7

Please sign in to comment.