client/app/bundles/course/assessment/submission/pages/SubmissionEditIndex/TimeLimitBanner.tsx
Function TimeLimitBanner
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const TimeLimitBanner: FC<Props> = (props) => {
const { submissionTimeLimitAt } = props;
const initialCurrentTime = new Date().getTime();
const initialRemainingTime = submissionTimeLimitAt - initialCurrentTime;
- Create a ticketCreate a ticket
Function remainingTimeDisplay
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const remainingTimeDisplay = (remainingTime: number): JSX.Element => {
const hours = Math.floor(remainingTime / 1000 / 60 / 60) % 24;
const minutes = Math.floor(remainingTime / 1000 / 60) % 60;
const seconds = Math.floor(remainingTime / 1000) % 60;
- Create a ticketCreate a ticket