Skip to content

Commit 82f1d01

Browse files
committed
DS-1411: WIP Add mega menu
1 parent 5f72ce9 commit 82f1d01

27 files changed

+462
-523
lines changed

app/(editor)/editor/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Page = async ({ searchParams }: PageProps) => {
3838
const { access_key: accessKey, path } = await searchParams;
3939

4040
// Not a valid editor token.
41-
if (accessKey !== process.env.STORYBLOK_PREVIEW_EDITOR_TOKEN) {
41+
if (accessKey !== process.env.NEXT_PUBLIC_STORYBLOK_ACCESS_TOKEN) {
4242
console.error('Invalid editor token');
4343
notFound();
4444
}

app/layout.tsx

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import './globals.css';
55
import 'react-loading-skeleton/dist/skeleton.css';
66
import { FlexBox } from '@/components/FlexBox';
77
import { GAProvider, GTAG } from '@/components/GAProvider';
8+
import { SearchModalProvider } from '@/components/Search/Modal/SearchModalContext';
89

910
type LayoutProps = {
1011
children: React.ReactNode,
@@ -31,22 +32,24 @@ const stanford = localFont({
3132
const RootLayout = ({ children }: LayoutProps) => {
3233
return (
3334
<GAProvider>
34-
<html
35-
lang="en"
36-
className={cnb(
37-
source_sans.variable,
38-
source_serif.variable,
39-
stanford.variable,
40-
)}
41-
>
42-
{/* Absolutely necessary to have a body tag here, otherwise your components won't get any interactivity */}
43-
<body>
44-
<GTAG />
45-
<FlexBox justifyContent="between" direction="col" className="min-h-screen relative">
46-
{children}
47-
</FlexBox>
48-
</body>
49-
</html>
35+
<SearchModalProvider>
36+
<html
37+
lang="en"
38+
className={cnb(
39+
source_sans.variable,
40+
source_serif.variable,
41+
stanford.variable,
42+
)}
43+
>
44+
{/* Absolutely necessary to have a body tag here, otherwise your components won't get any interactivity */}
45+
<body>
46+
<GTAG />
47+
<FlexBox justifyContent="between" direction="col" className="min-h-screen relative">
48+
{children}
49+
</FlexBox>
50+
</body>
51+
</html>
52+
</SearchModalProvider>
5053
</GAProvider>
5154
);
5255
};

components/HeroIcon/HeroIcon.styles.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
MinusIcon,
2121
PlayCircleIcon,
2222
PlusIcon,
23+
MagnifyingGlassIcon,
2324
XMarkIcon,
2425
} from '@heroicons/react/24/outline';
2526
import { CheckIcon } from '@heroicons/react/16/solid';
@@ -56,6 +57,7 @@ export const iconMap = {
5657
'play-outline': PlayCircleIcon,
5758
plus: PlusIcon,
5859
right: ArrowRightIcon,
60+
search: MagnifyingGlassIcon,
5961
up: ArrowUpIcon,
6062
};
6163
export type IconType = keyof typeof iconMap;

components/Search-old/Autocomplete.tsx

Lines changed: 0 additions & 162 deletions
This file was deleted.

components/Search-old/HeaderSearchButton.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)