mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: Merge sales branch
This commit is contained in:
11
client/src/components/DataTableCells/DivFieldCell.js
Normal file
11
client/src/components/DataTableCells/DivFieldCell.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
|
||||
export default function DivFieldCell({ cell: { value: initialValue } }) {
|
||||
const [value, setValue] = useState(initialValue);
|
||||
|
||||
useEffect(() => {
|
||||
setValue(initialValue);
|
||||
}, [initialValue]);
|
||||
|
||||
return <div>${value}</div>;
|
||||
}
|
||||
Reference in New Issue
Block a user