2023-05-03 19:35:28 +03:00

21 lines
555 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { PolicyTable, ReloadButton, Validation } from './Components';
import { columns } from './lib/config';
import { Flex } from 'ui/grid';
function getter(eltStore) {
return eltStore.kasko;
}
const kaskoColumns = [...columns];
kaskoColumns[0].title = 'Страховая компания КАСКО';
kaskoColumns[3].title = <ReloadButton getter={getter} />;
export function Kasko() {
return (
<Flex flexDirection="column">
<Validation getter={getter} />
<PolicyTable getter={getter} columns={kaskoColumns} />
</Flex>
);
}