aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-06-26 21:55:22 -0700
committerPinapelz <yukais@pinapelz.com>2024-06-26 21:55:22 -0700
commit5f58260a7602494f21969fd917a0a984ae9d714d (patch)
tree729b82d53557f26a4fb7d921effe4daa324e186e /src/app
parenta080b14f40cb20f86c0aaef90a35509a8d684fb6 (diff)
add historical milestone table to channel pages
Diffstat (limited to 'src/app')
-rw-r--r--src/app/page.tsx12
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();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage