From ef8d107a646546445c6fd6bd637de7bb37471372 Mon Sep 17 00:00:00 2001 From: Mahdi Ghajary <46849131+mmahdigh@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:05:01 +0330 Subject: [PATCH 1/2] Merge pull request #223 from GeneralMagicio/reward-banner#119 Reward banner#119 --- .../components/CategoryRewardBanner.tsx | 25 +++++++++++++++++++ src/app/categories/page.tsx | 4 +-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/app/categories/components/CategoryRewardBanner.tsx diff --git a/src/app/categories/components/CategoryRewardBanner.tsx b/src/app/categories/components/CategoryRewardBanner.tsx new file mode 100644 index 0000000..ce867ad --- /dev/null +++ b/src/app/categories/components/CategoryRewardBanner.tsx @@ -0,0 +1,25 @@ +import React from 'react'; + +const CategoryRewaredBanner: React.FC = () => { + return ( +
+
+
+

+ You've got a chance to claim OP! Click "Check + Eligibility" to see if you're eligible. + Don't forget to review your badge group and check + which raffles you can enter. +

+
+ + + +
+
+ ); +}; + +export default CategoryRewaredBanner; diff --git a/src/app/categories/page.tsx b/src/app/categories/page.tsx index a9a881c..de98387 100644 --- a/src/app/categories/page.tsx +++ b/src/app/categories/page.tsx @@ -10,7 +10,7 @@ import { useRouter } from 'next/navigation'; import LogoutModal from '../components/LogoutModal'; import CategoryCardView from './components/CategoryCardView'; import CategoryToggleButton from './components/CategoryToggleButton'; -import { Countdown } from './components/Countdown'; +import CategoryRewaredBanner from './components/CategoryRewardBanner'; const CategoriesPage = () => { const [isModalOpen, setModalOpen] = useState(false); @@ -43,7 +43,7 @@ const CategoriesPage = () => { }; return (
- + Date: Thu, 25 Jul 2024 15:14:39 -0400 Subject: [PATCH 2/2] made copy changes and other changes --- .../[categoryId]/project-ranking/done/page.tsx | 8 +++++--- .../[categoryId]/project-ranking/edit/page.tsx | 6 +++--- .../[categoryId]/project-ranking/page.tsx | 2 +- .../project-ranking/summary/page.tsx | 17 +++++++++++------ src/app/components/TopNavigation.tsx | 2 +- 5 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/app/categories/[categoryId]/project-ranking/done/page.tsx b/src/app/categories/[categoryId]/project-ranking/done/page.tsx index 0eb08ff..84a2c66 100644 --- a/src/app/categories/[categoryId]/project-ranking/done/page.tsx +++ b/src/app/categories/[categoryId]/project-ranking/done/page.tsx @@ -32,7 +32,9 @@ const ProjectRankingDonePage = () => { width={250} height={250} /> -

Filtering done!

+

+ Fantastic job filtering +

{' '} Now let's find out which projects come out on top! @@ -52,13 +54,13 @@ const ProjectRankingDonePage = () => { // }); // } router.push( - `${Routes.Categories}/${categoryId}/project-ranking/summary`, + `${Routes.Categories}/${categoryId}/pairwise-ranking`, ); }} // disabled={updateCategoryMarkFiltered.isPending} className='w-full bg-primary' > - Start Pairwise Assesment + Start Ranking

diff --git a/src/app/categories/[categoryId]/project-ranking/edit/page.tsx b/src/app/categories/[categoryId]/project-ranking/edit/page.tsx index 02ea76a..c1fde1b 100644 --- a/src/app/categories/[categoryId]/project-ranking/edit/page.tsx +++ b/src/app/categories/[categoryId]/project-ranking/edit/page.tsx @@ -169,7 +169,7 @@ const ProjectRankingEditPage = () => { Not Selected ({excludedProjects?.length || 0})

{excludedProjects?.map(project => ( -
+
{ `${Routes.Categories}/${selectedCategory?.id}/project-ranking/summary`, ); }} - className='w-full text-black shadow-md' + className='w-full text-black shadow-md' > - Discard Changes + Discard
-

+

{includedProjects?.length || 0} out of{' '} - {projects?.data.length || 0} projects selected + {projects?.data.length || 0}{' '} + + projects selected +

-

{selectedCategory?.name}

-

+

+ {selectedCategory?.name} +

+

Selected ({includedProjects?.length || 0})

{includedProjects?.map(project => ( @@ -110,12 +115,12 @@ const ProjectRankingSummaryPage = () => { data: { cid: +selectedCategoryId }, }); router.push( - `${Routes.Categories}/${selectedCategory?.id}/pairwise-ranking`, + `${Routes.Categories}/${categoryId}/project-ranking/done`, ); }} className='w-full bg-primary' > - Start ranking + Finish Filtering
diff --git a/src/app/components/TopNavigation.tsx b/src/app/components/TopNavigation.tsx index a13dad2..e49cbe7 100644 --- a/src/app/components/TopNavigation.tsx +++ b/src/app/components/TopNavigation.tsx @@ -13,7 +13,7 @@ const TopNavigation = ({ link = '/', text }: ITopNavigationProps) => { -

{text}

+

{text}

);