Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14231 Rev 14351
Línea 3... Línea 3...
3
import { useState } from 'react'
3
import { useState } from 'react'
Línea 4... Línea 4...
4
 
4
 
5
const ToggleComponent = ({
5
const ToggleComponent = ({
6
	label1 = 'Activo',
6
	label1 = 'Activo',
7
	label2 = 'Inactivo',
7
	label2 = 'Inactivo',
-
 
8
	setValue = function () { },
8
	setValue = function () { }
9
	currentValue
Línea 9... Línea 10...
9
}) => {
10
}) => {
Línea 10... Línea 11...
10
 
11
 
11
	const [isActive, setIsActive] = useState(false)
12
	const [isActive, setIsActive] = useState((currentValue) ? true : false)
12
 
13