Просмотр исходного кода

deleted the commented out codes

Shunm634-source 3 лет назад
Родитель
Сommit
466b62bc4d

+ 0 - 12
packages/app/src/components/Admin/Notification/GlobalNotification.jsx

@@ -19,12 +19,6 @@ const GlobalNotification = (props) => {
   const { adminNotificationContainer } = props;
   const { t } = useTranslation('admin');
 
-  // constructor() {
-  //   super();
-
-  //   this.onClickSubmit = this.onClickSubmit.bind(this);
-  // }
-
   const onClickSubmit = useCallback(async() => {
     try {
       await adminNotificationContainer.updateGlobalNotificationForPages();
@@ -116,12 +110,6 @@ GlobalNotification.propTypes = {
   adminNotificationContainer: PropTypes.instanceOf(AdminNotificationContainer).isRequired,
 };
 
-// const GlobalNotificationWrapperFC = (props) => {
-//   const { t } = useTranslation('admin');
-
-//   return <GlobalNotification t={t} {...props} />;
-// };
-
 const GlobalNotificationWrapper = withUnstatedContainers(GlobalNotification, [AdminNotificationContainer]);
 
 export default GlobalNotificationWrapper;

+ 0 - 23
packages/app/src/components/Admin/Notification/ManageGlobalNotification.jsx

@@ -30,23 +30,6 @@ const ManageGlobalNotification = (props) => {
   const [slackChannelToSend, setSlackChannelToSend] = useState('');
   const [triggerEvents, setTriggerEvents] = useState(new Set());
 
-
-  // onChangeTriggerPath(inputValue) {
-  //   this.setState({ triggerPath: inputValue });
-  // }
-
-  // onChangeNotifyToType(notifyToType) {
-  //   this.setState({ notifyToType });
-  // }
-
-  // onChangeEmailToSend(inputValue) {
-  //   this.setState({ emailToSend: inputValue });
-  // }
-
-  // onChangeSlackChannelToSend(inputValue) {
-  //   this.setState({ slackChannelToSend: inputValue });
-  // }
-
   const onChangeTriggerEvents = (triggerEvent) => {
 
     if (triggerEvents.has(triggerEvent)) {
@@ -296,12 +279,6 @@ ManageGlobalNotification.propTypes = {
   adminNotificationContainer: PropTypes.instanceOf(AdminNotificationContainer).isRequired,
 };
 
-// const ManageGlobalNotificationWrapperFC = (props) => {
-//   const { t } = useTranslation();
-
-//   return <ManageGlobalNotification t={t} {...props} />;
-// };
-
 const ManageGlobalNotificationWrapper = withUnstatedContainers(ManageGlobalNotification, [AdminNotificationContainer]);