diff --git a/README.md b/README.md index b9f0a813..24e8aec0 100644 --- a/README.md +++ b/README.md @@ -64,13 +64,3 @@ Register on Crowdin and you can start translating the project into your preferre Your contributions will help make our project accessible to a wider audience around the world. Thank you for your support! - -## Code info - -### NextThemeProvider - -provider for the theme context, it is used to provide the theme to the whole app, must be into the layout.tsx or page.tsx. - -### ThemeProviderV2 - -provider for the MUI theme context, mainly setting up the MUI provider, very linked to the next-theme provider diff --git a/src/app/[lng]/(main)/layout.tsx b/src/app/[lng]/(main)/layout.tsx index 9280f4cb..2178a72d 100644 --- a/src/app/[lng]/(main)/layout.tsx +++ b/src/app/[lng]/(main)/layout.tsx @@ -19,6 +19,7 @@ export default async function MainLayout({ const defaultTheme = 'default'; + // provider for the theme context, it is used to provide the theme to the whole app, must be into the layout.tsx or page.tsx. return ( - + {children} diff --git a/src/app/[lng]/scan/layout.tsx b/src/app/[lng]/scan/layout.tsx index 2b181e8f..926d9751 100644 --- a/src/app/[lng]/scan/layout.tsx +++ b/src/app/[lng]/scan/layout.tsx @@ -20,7 +20,7 @@ export default async function PartnerThemeLayout({ enableSystem enableColorScheme > - + {children} diff --git a/src/components/Blog/CTAs/InstructionsAccordion/InstructionsAccordionItem.tsx b/src/components/Blog/CTAs/InstructionsAccordion/InstructionsAccordionItem.tsx index 85e0ff39..86c25049 100644 --- a/src/components/Blog/CTAs/InstructionsAccordion/InstructionsAccordionItem.tsx +++ b/src/components/Blog/CTAs/InstructionsAccordion/InstructionsAccordionItem.tsx @@ -73,7 +73,6 @@ export const InstructionsAccordionItem = ({ @@ -148,6 +147,10 @@ export const InstructionsAccordionItem = ({ component={'span'} mr={'8px'} sx={{ + color: + theme.palette.mode === 'light' + ? '#000000' + : '#FFFFFF', overflow: 'hidden', textOverflow: 'ellipsis', maxWidth: 208, @@ -158,7 +161,14 @@ export const InstructionsAccordionItem = ({ > {buttonTitles[i]} - + diff --git a/src/components/ProfilePage/Rewards/RewardsAmountBox/RewardsAmountBox.tsx b/src/components/ProfilePage/Rewards/RewardsAmountBox/RewardsAmountBox.tsx index 5112a9e9..a8f334e5 100644 --- a/src/components/ProfilePage/Rewards/RewardsAmountBox/RewardsAmountBox.tsx +++ b/src/components/ProfilePage/Rewards/RewardsAmountBox/RewardsAmountBox.tsx @@ -77,7 +77,9 @@ export const RewardsAmountBox = ({ fontWeight={700} color={theme.palette.mode === 'dark' ? '#ffffff' : '#000000'} > - {!account?.address || (isSuccess && rewardAmount === 0) || isConfirmed + {!account?.address || + (isSuccess && (rewardAmount === 0 || !rewardAmount)) || + isConfirmed ? '0' : rewardAmount ? rewardAmount.toFixed(REWARDS_DECIMALS) diff --git a/src/components/ProfilePage/Rewards/RewardsCarousel.tsx b/src/components/ProfilePage/Rewards/RewardsCarousel.tsx index c98ca10e..9452b2ce 100644 --- a/src/components/ProfilePage/Rewards/RewardsCarousel.tsx +++ b/src/components/ProfilePage/Rewards/RewardsCarousel.tsx @@ -116,11 +116,25 @@ export const RewardsCarousel = ({