Made submission notice above other notices

This commit is contained in:
Ajay Ramachandran
2020-04-09 01:42:16 -04:00
parent b7870cbd74
commit adef65b878
2 changed files with 6 additions and 9 deletions

View File

@@ -11,7 +11,9 @@ export interface NoticeProps {
fadeIn?: boolean,
// Callback for when this is closed
closeListener?: () => void
closeListener?: () => void,
zIndex?: number
}
export interface NoticeState {
@@ -62,7 +64,7 @@ class NoticeComponent extends React.Component<NoticeProps, NoticeState> {
render() {
let noticeStyle: React.CSSProperties = {
zIndex: 50 + this.amountOfPreviousNotices
zIndex: this.props.zIndex || (50 + this.amountOfPreviousNotices)
}
return (