diff options
Diffstat (limited to 'src/components/NoticeComponent.tsx')
-rw-r--r-- | src/components/NoticeComponent.tsx | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/src/components/NoticeComponent.tsx b/src/components/NoticeComponent.tsx index ec8139fa..3202c6ac 100644 --- a/src/components/NoticeComponent.tsx +++ b/src/components/NoticeComponent.tsx @@ -8,41 +8,42 @@ enum CountdownMode { } export interface NoticeProps { - noticeTitle: string, - - maxCountdownTime?: () => number, - dontPauseCountdown?: boolean, - amountOfPreviousNotices?: number, - showInSecondSlot?: boolean, - timed?: boolean, - idSuffix?: string, - - fadeIn?: boolean, - startFaded?: boolean, - firstColumn?: React.ReactElement[] | React.ReactElement, - firstRow?: React.ReactElement, - bottomRow?: React.ReactElement[], - - smaller?: boolean, - limitWidth?: boolean, - extraClass?: string, - hideLogo?: boolean, - hideRightInfo?: boolean, + noticeTitle: string; + + maxCountdownTime?: () => number; + dontPauseCountdown?: boolean; + amountOfPreviousNotices?: number; + showInSecondSlot?: boolean; + timed?: boolean; + idSuffix?: string; + + fadeIn?: boolean; + startFaded?: boolean; + firstColumn?: React.ReactElement[] | React.ReactElement; + firstRow?: React.ReactElement; + bottomRow?: React.ReactElement[]; + + smaller?: boolean; + limitWidth?: boolean; + extraClass?: string; + hideLogo?: boolean; + hideRightInfo?: boolean; // Callback for when this is closed - closeListener: () => void, - onMouseEnter?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void, + closeListener: () => void; + onMouseEnter?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void; - zIndex?: number, - style?: React.CSSProperties + zIndex?: number; + style?: React.CSSProperties; biggerCloseButton?: boolean; + children?: React.ReactNode; } export interface NoticeState { - maxCountdownTime: () => number, + maxCountdownTime: () => number; - countdownTime: number, - countdownMode: CountdownMode, + countdownTime: number; + countdownMode: CountdownMode; mouseHovering: boolean; |