WIP Manual journals.

This commit is contained in:
Ahmed Bouhuolia
2020-04-07 22:38:57 +02:00
parent 05cc76b4f1
commit 8ba96e7343
6 changed files with 650 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
import React, { useCallback, useState } from 'react';
import React, { useCallback, useState, useEffect } from 'react';
import MoneyInputGroup from 'components/MoneyInputGroup';
// Input form cell renderer.
@@ -23,6 +23,10 @@ const MoneyFieldCellRenderer = ({
payload.updateData(index, id, updateValue);
};
useEffect(() => {
setValue(initialValue);
}, [initialValue])
return (<MoneyInputGroup
value={value}
prefix={'$'}