Skip to content

Commit

Permalink
feat: merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
Markkos89 committed Aug 10, 2024
2 parents b133670 + 1ef42c6 commit 51eb0fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/nextjs/components/Step6.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default function Step6() {
const [sum, setSum] = useState(0); //suma total
const [inputs, setInputs] = useState<any>({}); // valores de los inputs
const [attestations, setAttestations] = useState([]); // manejo atestaciones
// const [distributionAmount] = useState<number>(0); // impresion cantidad distrib

const GET_ATTESTERS = gql`
query Attestations($schemaID: String!, $attesterAddress: String!) {
Expand Down Expand Up @@ -85,6 +86,17 @@ export default function Step6() {
setSum(sum); // muestra valor
}

// Cantidad impresa imput
// function applyAmmout() {
// const updatedInputs = Object.keys(inputs).reduce((acc: { [key: string]: number }, key) => {
// acc[key] = distributionAmount; // asigno valor a cada imput

// return acc;
// }, {});

// setInputs(updatedInputs);
// }

// cambio del imput
function handleInput(e: any) {
const { name, value } = e.target;
Expand Down

0 comments on commit 51eb0fc

Please sign in to comment.