Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Update UpcomingAssignments threshold to be 31 days
Browse files Browse the repository at this point in the history
For the final project
  • Loading branch information
anli5005 authored Jan 31, 2024
1 parent 6c96e8d commit 908d4d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/UpcomingAssignments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { useState } from "react"
import { ScheduleTable, getSchedule } from "./Schedule"

const threshold = 3 * 7 * 24 * 60 * 60 * 1000 // 3 weeks
const thresholdText = "3 weeks"
const threshold = 32 * 24 * 60 * 60 * 1000 - 1 // 31 days
const thresholdText = "31 days"

const schedule = getSchedule(null)

Expand All @@ -23,4 +23,4 @@ export function UpcomingAssignments() {
<div className="mb-4">{upcoming.length} {upcoming.length === 1 ? "assignment is" : "assignments are"} due in the next {thresholdText}:</div>
<ScheduleTable items={upcoming} />
</>
}
}

0 comments on commit 908d4d1

Please sign in to comment.