Skip to content

Commit

Permalink
timetable update
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Jun 20, 2023
1 parent e983ee1 commit c9e4cdb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/components/Contribute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,5 @@ const ReadmeMd = ()=> {
<MarkDown text={readme}/>
</motion.div>
}


3 changes: 2 additions & 1 deletion src/pages/freeclassrooms/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export async function getStaticProps(context: GetStaticPropsContext) {

return {
props: {
timetables
timetables,
revalidate: 10
}
};
}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/pastpaper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export async function getStaticProps(context: GetStaticPathsContext) {
const data = docRef.data();

const pastPapers = (await getDocs (pastPapersCol)).docs.map(data=> ({...data.data(), uploadedAt: fromFirebaseTimeStamp(data.data().uploadedAt).toString() }));

console.log (pastPapers[0].uploadedAt);


return {
props: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/timetable/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
props: {
timetable: { id: id, ...timetable }
},
revalidate: 1000 * 60
revalidate: 10
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/timetable/teachers/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function getStaticProps(context: GetStaticPropsContext) {
props: {
timetable: { id: docRef.id, ...docData.data() }
},
revalidate: 5000
revalidate: 30
};
}

Expand Down

1 comment on commit c9e4cdb

@vercel
Copy link

@vercel vercel bot commented on c9e4cdb Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.