mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-24 22:14:18 +00:00
🌐 Fix debug messages language
This commit is contained in:
parent
919cbefd0f
commit
36f7f76372
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ import { useCallback, useState } from "react"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An hook similar to {@link useState} which stores an array of values.
|
* An hook similar to {@link useState} which stores an array instead of a single value.
|
||||||
*
|
*
|
||||||
* @param def - The starting value of the hook.
|
* @param def - The starting value of the hook.
|
||||||
* @returns {{spliceValue, removeValue, setValue, appendValue, value}}
|
* @returns {{spliceValue, removeValue, setValue, appendValue, value}}
|
||||||
|
@ -12,7 +12,7 @@ export default function useArrayState(def) {
|
||||||
|
|
||||||
const appendValue = useCallback(
|
const appendValue = useCallback(
|
||||||
newSingle => {
|
newSingle => {
|
||||||
console.debug("Aggiungendo ", newSingle, " ad ArrayState")
|
console.debug("Adding ", newSingle, " to ArrayState")
|
||||||
setValue(
|
setValue(
|
||||||
oldArray => [...oldArray, newSingle],
|
oldArray => [...oldArray, newSingle],
|
||||||
)
|
)
|
||||||
|
@ -22,7 +22,7 @@ export default function useArrayState(def) {
|
||||||
|
|
||||||
const spliceValue = useCallback(
|
const spliceValue = useCallback(
|
||||||
position => {
|
position => {
|
||||||
console.debug("Estraendo ", position, " da ArrayState")
|
console.debug("Splicing ", position, " from ArrayState")
|
||||||
setValue(
|
setValue(
|
||||||
oldArray => {
|
oldArray => {
|
||||||
oldArray.splice(position, 1)
|
oldArray.splice(position, 1)
|
||||||
|
|
Loading…
Reference in a new issue