diff options
Diffstat (limited to 'src/app/page.tsx')
| -rw-r--r-- | src/app/page.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
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 ( <> <TitleBar title="PhaseTracker" backgroundColor='black' /> <div className="sm:block hidden mt-4" style={{ overflow: 'hidden', height: '105vh', position: 'relative' }}> @@ -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(); |
