diff --git a/remix/app/root.tsx b/remix/app/root.tsx index 44b5a80..a8fa06d 100644 --- a/remix/app/root.tsx +++ b/remix/app/root.tsx @@ -7,7 +7,6 @@ import { Outlet, Scripts, ScrollRestoration, - useCatch, useLoaderData, } from "remix"; import type { MetaFunction } from "remix"; @@ -17,7 +16,8 @@ import { locale } from "./config/locale"; import { BasketButton } from "./components/basket/basket-button"; import { QueryClient, QueryClientProvider } from "react-query"; import { ErrorComponent } from "./components/404"; - +import CrystallizeLogo from "../assets/crystallize-logo.svg" +import Logo from "../assets/logo.svg" const queryClient = new QueryClient(); @@ -43,13 +43,16 @@ export default function App() { const data = useLoaderData(); if (typeof window !== "undefined") { - window.addEventListener('load', function () { - navigator.serviceWorker.register('/sw.js').then( + window.addEventListener("load", function () { + navigator.serviceWorker.register("/sw.js").then( function (registration) { - console.log('ServiceWorker registration successful with scope: ', registration.scope); + console.log( + "ServiceWorker registration successful with scope: ", + registration.scope + ); }, function (err) { - console.log('ServiceWorker registration failed: ', err); + console.log("ServiceWorker registration failed: ", err); } ); }); @@ -62,12 +65,25 @@ export default function App() { - - + + - + - + @@ -76,7 +92,7 @@ export default function App() {