Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
sync project
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan committed Sep 18, 2023
1 parent cea4e48 commit fc24d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {seoPayload} from '~/lib/seo.server';

import favicon from '../public/favicon.svg';

import {RouteLoaderArgs} from '@weaverse/hydrogen';
import {RouteLoaderArgs, withWeaverse} from '@weaverse/hydrogen';
import {GenericError} from './components/GenericError';
import {NotFound} from './components/NotFound';
import {useAnalytics} from './hooks/useAnalytics';
Expand Down Expand Up @@ -89,7 +89,7 @@ export async function loader({request, context}: RouteLoaderArgs) {
});
}

export default function App() {
function App() {
const nonce = useNonce();
const data = useLoaderData<typeof loader>();
const locale = data.selectedLocale ?? DEFAULT_LOCALE;
Expand Down Expand Up @@ -121,6 +121,7 @@ export default function App() {
</html>
);
}
export default withWeaverse(App);

export function ErrorBoundary({error}: {error: Error}) {
const nonce = useNonce();
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"dependencies": {
"@headlessui/react": "^1.7.17",
"@remix-run/react": "1.19.1",
"@shopify/cli": "3.48.6",
"@shopify/cli": "3.49.3",
"@shopify/cli-hydrogen": "^5.2.3",
"@shopify/hydrogen": "^2023.7.7",
"@shopify/remix-oxygen": "^1.1.4",
"@weaverse/hydrogen": "^1.1.20",
"@weaverse/hydrogen": "^1.2.0",
"clsx": "^2.0.0",
"cross-env": "^7.0.3",
"graphql": "^16.8.0",
Expand Down Expand Up @@ -52,7 +52,7 @@
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"eslint": "^8.47.0",
"eslint": "^8.49.0",
"eslint-plugin-hydrogen": "0.12.3",
"postcss": "^8.4.29",
"postcss-import": "^15.1.0",
Expand Down

0 comments on commit fc24d65

Please sign in to comment.