mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
WIP Manual journals.
This commit is contained in:
@@ -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={'$'}
|
||||
|
||||
@@ -8,7 +8,6 @@ import { FormattedList } from 'react-intl';
|
||||
export default function MakeJournalEntriesFooter({
|
||||
formik,
|
||||
}) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div class="form__floating-footer">
|
||||
|
||||
Reference in New Issue
Block a user