Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4369 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4369 Rev 4379
Línea 4... Línea 4...
4
import { connect } from "react-redux";
4
import { connect } from "react-redux";
5
import { addNotification } from "../../../redux/notification/notification.actions";
5
import { addNotification } from "../../../redux/notification/notification.actions";
Línea 6... Línea 6...
6
 
6
 
7
// Components
7
// Components
8
import Spinner from "../../../shared/loading-spinner/Spinner";
8
import Spinner from "../../../shared/loading-spinner/Spinner";
Línea 9... Línea 9...
9
import SwitchInput from "./switch-input/SwitchInput";
9
import SwitchInput from "../shared/switch-input/SwitchInput";
10
 
10
 
11
const NOTIFICATION_OPTIONS = [
11
const NOTIFICATION_OPTIONS = [
12
  {
12
  {
Línea 104... Línea 104...
104
              setNotifications((prevNotifications) => prevNotifications
104
              setNotifications((prevNotifications) => prevNotifications
105
                .map((notification) =>
105
                .map((notification) =>
106
                  notification.input_name === key
106
                  notification.input_name === key
107
                    ? { ...notification, value: Boolean(value) }
107
                    ? { ...notification, value: Boolean(value) }
108
                    : notification
108
                    : notification
109
                ))
109
                )))
110
            )
-
 
111
        }
110
        }
112
      })
111
      })
113
      .finally(() => setLoading(false))
112
      .finally(() => setLoading(false))
114
  }, []);
113
  }, []);