diff --git a/src/App.tsx b/src/App.tsx
index 6fb63ef..f021ba2 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -2,7 +2,7 @@ import { Box } from '@mantine/core';
import {
createBrowserRouter,
RouterProvider,
- useLoaderData,
+ // useLoaderData,
} from 'react-router-dom';
import { KartaPage } from './KartaPage';
@@ -14,12 +14,6 @@ import headerLinks from './assets/header.json';
import footerLinks from './assets/footer.json';
-const articleLoader = async function({ params }) {
- const response = await fetch("http://strapi.wg.gateway.ts/api/articles?filters[id][$eq]=3")
- const article = await response.json()
- return article;
-}
-
const router = createBrowserRouter([
{
path: "/",
@@ -33,7 +27,7 @@ const router = createBrowserRouter([
path: "/article/:id",
element: ,
loader: async ({ params }) => {
- return fetch(`http://strapi.wg.gateway.ts/api/articles?populate=*&filters[id][$eq]=${params.id}`);
+ return fetch(`https://strapi.iamonlyherefortheicecream.gq/api/articles?populate=*&filters[id][$eq]=${params.id}`);
},
}
])
diff --git a/src/Article.tsx b/src/Article.tsx
index 2031ab2..fed92d1 100644
--- a/src/Article.tsx
+++ b/src/Article.tsx
@@ -38,7 +38,7 @@ export function Article() {
if (articleData.data[0].attributes.carousel.data) {
return (
- {articleData.data[0].attributes.carousel.data.map(image => )}
+ {articleData.data[0].attributes.carousel.data.map(image => )}
)
}