From 5f58260a7602494f21969fd917a0a984ae9d714d Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 26 Jun 2024 21:55:22 -0700 Subject: add historical milestone table to channel pages --- src/app/page.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/app') diff --git a/src/app/page.tsx b/src/app/page.tsx index fb7f1a3..4749635 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,10 +1,10 @@ -import SubscriberTable, {SubscriberDataTableProp} from '../components/SubscriberTable/SubscriberTable'; +import SubscriberTable, { SubscriberDataTableProp } from '../components/SubscriberTable/SubscriberTable'; import TitleBar from '../components/TitleBar/TitleBar'; -async function Home(){ +async function Home() { const graphURL = process.env.NEXT_PUBLIC_GRAPH_URL const data: SubscriberDataTableProp = await getData(); - return( + return ( <>
@@ -15,15 +15,15 @@ async function Home(){ ); } -async function getData(){ +async function getData() { const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING - const response = await fetch(apiUrl+'/api/subscribers', { + const response = await fetch(apiUrl + '/api/subscribers', { headers: { 'Cache-Control': 'no-cache' }, cache: 'no-cache' }); - if(!response.ok){ + if (!response.ok) { console.log(response.statusText); } return response.json(); -- cgit v1.2.3