Untitled

mail@pastecode.io avatar
unknown
javascript
7 months ago
365 B
0
Indexable
Never
  const setInventoryData = useCallback(
    (skus: Sku[], sizeGridColumns: string[], sizeGridRows: string[]) => {
      const sizeMatrix = getSizeMatrix(skus, sizeGridColumns, sizeGridRows);
      setMatrices(chunkSizeMatrix(sizeMatrix, maxColumns));

      const sizeInputs = getSizeCellInputs(sizeMatrix);
      setInputs(sizeInputs);
    },
    [maxColumns]
  );