* Remove unused components * Fix company not being created issue * Fix company not being created issue * Fix company not being created issue * Optimize rendering * Optimize rendering
21 lines
614 B
TypeScript
21 lines
614 B
TypeScript
import { IconList } from '@/ui/icon';
|
|
import { EntityTable } from '@/ui/table/components/EntityTable';
|
|
import { useUpdateOneCompanyMutation } from '~/generated/graphql';
|
|
import { availableSorts } from '~/pages/companies/companies-sorts';
|
|
|
|
import { CompanyTableMockData } from './CompanyTableMockData';
|
|
|
|
export function CompanyTableMockMode() {
|
|
return (
|
|
<>
|
|
<CompanyTableMockData />
|
|
<EntityTable
|
|
viewName="All Companies"
|
|
viewIcon={<IconList size={16} />}
|
|
availableSorts={availableSorts}
|
|
updateEntityMutation={[useUpdateOneCompanyMutation()]}
|
|
/>
|
|
</>
|
|
);
|
|
}
|