Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5225 Rev 5228
Línea 2... Línea 2...
2
import React, { useEffect, useState } from 'react'
2
import React, { useEffect, useState } from 'react'
3
import { useDispatch } from 'react-redux'
3
import { useDispatch } from 'react-redux'
4
import { addNotification } from '../../redux/notification/notification.actions'
4
import { addNotification } from '../../redux/notification/notification.actions'
5
import { axios } from '../../utils'
5
import { axios } from '../../utils'
6
import CapsulesList from './CapsulesList'
6
import CapsulesList from './CapsulesList'
7
import RewardsList from './RewardsList'
-
 
Línea 8... Línea 7...
8
 
7
 
9
const MarketPlace = () => {
8
const MarketPlace = () => {
10
  const [capsules, setCapsules] = useState([])
9
  const [capsules, setCapsules] = useState([])
11
  const [rewards, setRewards] = useState([])
10
  const [rewards, setRewards] = useState([])
Línea 91... Línea 90...
91
              <option value={element.value} key={i}>{element.label}</option>
90
              <option value={element.value} key={i}>{element.label}</option>
92
            )}
91
            )}
93
          </select>
92
          </select>
94
        </div>
93
        </div>
95
      </div>
94
      </div>
96
        <CapsulesList
95
      <CapsulesList
-
 
96
        category={searchParams.category}
97
        capsules={searchParams.category === 'capsules' ? capsules : rewards}
97
        capsules={searchParams.category === 'capsules' ? capsules : rewards}
98
        onEnroll={load}
98
        onEnroll={load}
99
 
-
 
100
        />
99
      />
101
    </section>
100
    </section>
102
  )
101
  )
103
}
102
}
Línea 104... Línea 103...
104
 
103