This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Mini ejercicio técnico Cirkular Agro Fintech SAS - Sebastian Morales') | |
//**Instalar paquete con el comando ```npm install uuid``` | |
import {v5 as uuid} from 'uuid'; | |
//Definicion de tipos | |
interface PreInvoice{ | |
products:string[] | |
sent:boolean; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<int, String> _shortNotationNumbers = { | |
1: 'K', | |
2: 'M', | |
3: 'B', | |
4: 'T' | |
}; | |
/// @author Sebastian Morales; | |
class LegibleFormat{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ChangeEvent, FormEvent, useState } from "react"; | |
/** | |
* | |
* @param initialState | |
* @returns '{ formData, handleChange, handleSubmit }' | |
* @author 'Sebastian Morales' | |
* @description 'useForm es un hook para trabajar con formularios sin importar el numero de entradas, |