diff --git a/web/src/components/Popup/MiniGuides/PageContentsTemplate.tsx b/web/src/components/Popup/MiniGuides/PageContentsTemplate.tsx index d8b4e9741..893f0f109 100644 --- a/web/src/components/Popup/MiniGuides/PageContentsTemplate.tsx +++ b/web/src/components/Popup/MiniGuides/PageContentsTemplate.tsx @@ -24,6 +24,7 @@ export const LeftContentContainer = styled.div` export const StyledImage = styled.div` width: ${responsiveSize(260, 460)}; + ${landscapeStyle( () => css` width: 389px; diff --git a/web/src/pages/Cases/CaseDetails/Appeal/AppealHistory.tsx b/web/src/pages/Cases/CaseDetails/Appeal/AppealHistory.tsx index ce029a5d6..d6b993009 100644 --- a/web/src/pages/Cases/CaseDetails/Appeal/AppealHistory.tsx +++ b/web/src/pages/Cases/CaseDetails/Appeal/AppealHistory.tsx @@ -1,14 +1,15 @@ import React from "react"; import styled from "styled-components"; +import Skeleton from "react-loading-skeleton"; + import { useOptionsContext, useFundingContext } from "hooks/useClassicAppealContext"; import HowItWorks from "components/HowItWorks"; import Appeal from "components/Popup/MiniGuides/Appeal"; import OptionCard from "./OptionCard"; - -import { AppealHeader, StyledTitle } from "."; +import { AppealHeader, StyledTitle } from "./index"; const OptionsContainer = styled.div` display: grid; @@ -26,7 +27,7 @@ const AppealHistory: React.FC = ({ isAppealMiniGuideOpen, toggle const options = useOptionsContext(); const { winningChoice, paidFees, fundedChoices } = useFundingContext(); - return ( + return options && options.length > 2 ? (
Appeal Results - Last Round @@ -37,24 +38,20 @@ const AppealHistory: React.FC = ({ isAppealMiniGuideOpen, toggle /> - {options ? ( - options.map((option, index) => { - return ( - - ); - }) - ) : ( -

Not in appeal period

- )} + {options.map((option, index) => ( + + ))}
+ ) : ( + ); }; export default AppealHistory;