FinGAP: wrap table with store observer

This commit is contained in:
Chika 2022-06-29 13:31:58 +03:00
parent 2b383695fa
commit 33677c504f

View File

@ -1,8 +1,9 @@
import Table from 'Elements/Table';
import { observer } from 'mobx-react-lite';
import { useStore } from 'stores/hooks';
import { columns } from './config';
export default function FinGAPTable() {
const FinGAPTable = observer(() => {
const { $tables } = useStore();
const { finGAP } = $tables;
@ -30,4 +31,6 @@ export default function FinGAPTable() {
}}
/>
);
}
});
export default FinGAPTable;