diff --git a/js/src/app/dashboard/Dashboard.page.tsx b/js/src/app/dashboard/Dashboard.page.tsx index 6b092646d..39afc8da3 100644 --- a/js/src/app/dashboard/Dashboard.page.tsx +++ b/js/src/app/dashboard/Dashboard.page.tsx @@ -63,15 +63,26 @@ export default function DashboardPage() { : } - - - - - - + {(() => { + const leaderboardCard = ( + + + + ); + const problemOfTheDayCard = ( + + + + ); + const orderedComponents = + smallPhone ? + [problemOfTheDayCard, leaderboardCard] + : [leaderboardCard, problemOfTheDayCard]; + return <>{orderedComponents}; + })()} diff --git a/js/src/app/dashboard/_components/ProblemOfTheDay/ProblemOfTheDay.tsx b/js/src/app/dashboard/_components/ProblemOfTheDay/ProblemOfTheDay.tsx index 83b8b6b78..e68fea41c 100644 --- a/js/src/app/dashboard/_components/ProblemOfTheDay/ProblemOfTheDay.tsx +++ b/js/src/app/dashboard/_components/ProblemOfTheDay/ProblemOfTheDay.tsx @@ -40,7 +40,7 @@ export default function ProblemOfTheDay() { const json = data.payload; return ( - +
Problem of the day