Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12745 Rev 12749
Línea 68... Línea 68...
68
		setIsShowSectionModal(false)
68
		setIsShowSectionModal(false)
69
		setSectionSelected(INITIAL_SECTION)
69
		setSectionSelected(INITIAL_SECTION)
70
	}
70
	}
Línea 71... Línea 71...
71
 
71
 
72
	const addSection = (section) => {
-
 
73
		console.log(section)
72
	const addSection = (section) => {
74
		setContent(prev => [...prev, section])
73
		setContent(prev => [...prev, section])
Línea 75... Línea 74...
75
	}
74
	}
-
 
75
 
76
 
76
	const editSection = (section) => {
-
 
77
		setContent(prev => prev.map(contentSection => {
-
 
78
			if (contentSection.slug_section === section.slug_section) {
-
 
79
				return section
77
	const editSection = (section) => {
80
			}
Línea 78... Línea 81...
78
		setContent(prev => prev.map(prevSection => prevSection.slug_section === section.slug_section && section))
81
		}))
79
	}
82
	}
80
 
83