Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3316 | Rev 4202 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3316 Rev 4201
Línea 22... Línea 22...
22
 
22
 
23
  const handleAccept = () => {
23
  const handleAccept = () => {
24
    deleteAllNotifications()
24
    deleteAllNotifications()
25
    handleConfirmModalShow()
25
    handleConfirmModalShow()
26
  }
26
  }
27
  
27
 
28
  const handleNotifications = async () => {
28
  const handleNotifications = async () => {
29
    try {
29
    try {
30
      const _notifications = await axios.get('/notifications')
30
      const _notifications = await axios.get('/notifications')
31
      setNotifications(_notifications.data.data)
31
      setNotifications(_notifications.data.data)
Línea 92... Línea 92...
92
            />
92
            />
93
            <SocialNetworks />
93
            <SocialNetworks />
94
          </div>
94
          </div>
95
          <div className="card-body">
95
          <div className="card-body">
96
            <div className="container">
96
            <div className="container">
97
              <div className="messages-sec border-gray px-5 py-4">
97
              <div className="notification-list">
98
                <div className="d-flex align-items-center justify-content-between position-relative mb-3">
98
                <div className="d-flex align-items-center justify-content-between position-relative">
99
                  <h2 className="card-title" style={{ fontSize: '1.7rem', fontWeight: '700' }}>
99
                  <h2 className="card-title" style={{ fontSize: '1.7rem', fontWeight: '700' }}>
100
                    Notificaciones
100
                    Notificaciones
101
                  </h2>
101
                  </h2>
102
                  <div className="cursor-pointer d-flex align-items-center">
102
                  <div className="cursor-pointer d-flex align-items-center">
103
                    <BiDotsVerticalRounded
103
                    <BiDotsVerticalRounded
Línea 119... Línea 119...
119
                    </div>
119
                    </div>
120
                  </div>
120
                  </div>
121
                </div>
121
                </div>
122
                <ul>
122
                <ul>
123
                  {notifications.length
123
                  {notifications.length
124
                    ? [...notifications].reverse().map((element, i) =>
124
                    ? [...notifications].reverse().map((element, index) =>
125
                      <li key={i}>
125
                      <li key={index}>
126
                        <div className="notification-item">
126
                        <div className="notification-item">
127
                          <div className="d-inline-flex flex-column">
-
 
128
                            <a href={element.link} className='mb-1'>
127
                          <a href={element.link}>
129
                              {element.message}
128
                            {element.message}
130
                            </a>
129
                          </a>
131
                            <span>
130
                          <span>
132
                              {element.time_elapsed}
131
                            {element.time_elapsed}
133
                            </span>
132
                          </span>
134
                          </div>
-
 
135
                        </div>
133
                        </div>
136
                      </li>
134
                      </li>
137
                    )
135
                    )
138
                    :
136
                    :
139
                    <div
-
 
140
                      className="section_admin_title_buttons w-100"
137
                    <div className="empty-section">
141
                      style={{ display: 'grid', placeItems: 'center' }}
-
 
142
                    >
-
 
143
                      <h1 className="title">No hay notificaciones</h1>
138
                      <h1 className="title">No hay notificaciones</h1>
144
                    </div>
139
                    </div>
145
                  }
140
                  }
146
                </ul>
141
                </ul>
147
              </div>
142
              </div>