Skip to content

Commit

Permalink
chore: close wrapped experience but keep banner for future usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tcheee authored Jan 2, 2025
1 parent b581896 commit ae9cdf9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 1 addition & 4 deletions src/app/[lng]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,7 @@ export default async function RootLayout({
<SettingsStoreProvider
welcomeScreenClosed={welcomeScreenClosed}
>
<WalletProvider>
<Banner />
{children}
</WalletProvider>
<WalletProvider>{children}</WalletProvider>
</SettingsStoreProvider>
</ThemeProvider>
</NextThemeProvider>
Expand Down
8 changes: 3 additions & 5 deletions src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Banner = () => {
action: TrackingAction.ClickBanner,
label: 'click-banner-cta',
data: {
[TrackingEventParameter.ActiveCampaign]: 'wrapped-2024',
[TrackingEventParameter.ActiveCampaign]: '',
},
});
};
Expand All @@ -31,7 +31,7 @@ export const Banner = () => {

return (
<a
href="https://wrapped.jumper.exchange"
href="https://jumper.exchange"
target="_blank"
style={{ textDecoration: 'none', color: 'inherit' }}
rel="noreferrer"
Expand Down Expand Up @@ -61,9 +61,7 @@ export const Banner = () => {
}}
>
{' '}
{isSmallScreen
? 'Your 2024 Jumper Wrapped is here'
: 'Your 2024 Jumper Wrapped is here. Wrap your year'}{' '}
{isSmallScreen ? '' : ''}{' '}
</Typography>
<Image
alt="arrow-icon"
Expand Down
5 changes: 2 additions & 3 deletions src/components/Menus/MainMenu/useMainMenuContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import {
JUMPER_LEARN_PATH,
JUMPER_LOYALTY_PATH,
JUMPER_SCAN_PATH,
JUMPER_WASH_PATH,
JUMPER_WRAPPED_URL,
X_URL,
JUMPER_WRAPPED_URL,
} from '@/const/urls';
import { useUserTracking } from '@/hooks/userTracking/useUserTracking';
import { useMenuStore } from '@/stores/menu';
Expand All @@ -23,14 +22,14 @@ import AccountCircleIcon from '@mui/icons-material/AccountCircle';
import DeveloperModeIcon from '@mui/icons-material/DeveloperMode';
import LanguageIcon from '@mui/icons-material/Language';
import SchoolIcon from '@mui/icons-material/School';
import ViewCarouselIcon from '@mui/icons-material/ViewCarousel';
import SearchOutlinedIcon from '@mui/icons-material/SearchOutlined';
import XIcon from '@mui/icons-material/X';
import { Typography } from '@mui/material';
import { useTheme } from '@mui/material/styles';
import { usePathname, useRouter } from 'next/navigation';
import { useTranslation } from 'react-i18next';
import { useThemeSwitchTabs } from './useThemeSwitchTabs';
import ViewCarouselIcon from '@mui/icons-material/ViewCarousel';

export const useMainMenuContent = () => {
const { t, i18n } = useTranslation();
Expand Down

0 comments on commit ae9cdf9

Please sign in to comment.