make skip notice countdown customisable

This commit is contained in:
Ajay Ramachandran
2021-06-25 12:32:27 -04:00
parent 31855f7501
commit 38bc6e2b1c
5 changed files with 30 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import * as React from "react";
import Config from "../config";
export interface NoticeProps {
noticeTitle: string,
@@ -42,7 +43,7 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> {
const maxCountdownTime = () => {
if (this.props.maxCountdownTime) return this.props.maxCountdownTime();
else return 4;
else return Config.config.skipNoticeDuration;
};
//the id for the setInterval running the countdown