@shopify/create-hydrogen 5.0.19 → 5.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "@shopify:registry": "https://registry.npmjs.org"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "5.0.19",
8
+ "version": "5.0.21",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,46 +0,0 @@
1
- import {useNonce, Analytics} from '@shopify/hydrogen';
2
- import {
3
- Links,
4
- Meta,
5
- Scripts,
6
- useRouteLoaderData,
7
- ScrollRestoration,
8
- Outlet,
9
- } from '@remix-run/react';
10
- import resetStyles from '~/styles/reset.css?url';
11
- import appStyles from '~/styles/app.css?url';
12
- import {PageLayout} from '~/components/PageLayout';
13
- import { RootLoader } from './root';
14
-
15
- export default function Layout() {
16
- const nonce = useNonce();
17
- const data = useRouteLoaderData<RootLoader>('root');
18
-
19
- return (
20
- <html lang="en">
21
- <head>
22
- <meta charSet="utf-8" />
23
- <meta name="viewport" content="width=device-width,initial-scale=1" />
24
- <link rel="stylesheet" href={resetStyles}></link>
25
- <link rel="stylesheet" href={appStyles}></link>
26
- <Meta />
27
- <Links />
28
- </head>
29
- <body>
30
- {data ? (
31
- <Analytics.Provider
32
- cart={data.cart}
33
- shop={data.shop}
34
- consent={data.consent}
35
- >
36
- <PageLayout {...data}><Outlet /></PageLayout>
37
- </Analytics.Provider>
38
- ) : (
39
- <Outlet />
40
- )}
41
- <ScrollRestoration nonce={nonce} />
42
- <Scripts nonce={nonce} />
43
- </body>
44
- </html>
45
- );
46
- }