From 422966437cde2e4e4ba183dbf2e47fe83ce13201 Mon Sep 17 00:00:00 2001 From: zaramalik03 Date: Tue, 3 Dec 2024 15:59:41 -0600 Subject: [PATCH] removed unecessary comments --- .../Admin/View/ViewDashboard/Notifications.js | 27 ------------------- .../src/View/Components/SendMessageModal.js | 4 +-- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/FrontEndReact/src/View/Admin/View/ViewDashboard/Notifications.js b/FrontEndReact/src/View/Admin/View/ViewDashboard/Notifications.js index f098ef57a..b9195bb92 100644 --- a/FrontEndReact/src/View/Admin/View/ViewDashboard/Notifications.js +++ b/FrontEndReact/src/View/Admin/View/ViewDashboard/Notifications.js @@ -3,7 +3,6 @@ import "bootstrap/dist/css/bootstrap.css"; import "../../../../SBStyles.css"; import { Box, Typography } from "@mui/material"; import CustomButton from "../../../Student/View/Components/CustomButton.js"; -import { genericResourcePUT } from "../../../../utility.js"; import SendMessageModal from '../../../Components/SendMessageModal.js'; import CustomDataTable from "../../../Components/CustomDataTable.js"; @@ -15,13 +14,11 @@ class ViewNotification extends Component { errorMessage: null, isLoaded: null, showDialog: false, - // notes: '', emailSubject: '', emailMessage: '', notificationSent: false, errors: { - // notes:'' emailSubject: '', emailMessage: '', } @@ -51,14 +48,6 @@ class ViewNotification extends Component { var emailMessage = this.state.emailMessage; - var navbar = this.props.navbar; - - var state = navbar.state; - - var chosenAssessmentTask = state.chosenAssessmentTask; - - var date = new Date(); - if (emailSubject.trim() === '' && emailMessage.trim() === '') { this.setState({ errors: { @@ -91,20 +80,6 @@ class ViewNotification extends Component { return; } - // genericResourcePUT( - // this, JSON.stringify({ - // "notification_date": date, - // "notification_subject": emailSubject, - // "notification_message": emailMessage - // }) - // ).then((result) => { - // if (result !== undefined && result.errorMessage === null) { - // this.setState({ - // showDialog: false, - // notificationSent: date, - // }); - // } - // }); }; render() { @@ -140,8 +115,6 @@ class ViewNotification extends Component { diff --git a/FrontEndReact/src/View/Components/SendMessageModal.js b/FrontEndReact/src/View/Components/SendMessageModal.js index 31af4699d..51509df5d 100644 --- a/FrontEndReact/src/View/Components/SendMessageModal.js +++ b/FrontEndReact/src/View/Components/SendMessageModal.js @@ -72,8 +72,8 @@ export default function SendMessageModal ( props ) {