d5f88e566c
The goal of this PR is to test if Twenty can support a large number of members, a question which was raised by a large company that is considering moving away from Salesforce. I was expecting the currentWorkspaceMembersState to cause a lot more issue. It would be very hard to get rid of it in the context of actors, I think that would require a big refactoring. I thought we'd have to do it but it turns out the perf are pretty good. One thing we need to improve is the pagination on the roles page, we'll wait for @Bonapara to update that
25 lines
747 B
TypeScript
25 lines
747 B
TypeScript
import { Table } from '@/ui/layout/table/components/Table';
|
|
import { TableHeader } from '@/ui/layout/table/components/TableHeader';
|
|
import { TableRow } from '@/ui/layout/table/components/TableRow';
|
|
import styled from '@emotion/styled';
|
|
import { Trans } from '@lingui/react/macro';
|
|
|
|
const StyledTableHeader = styled(TableHeader)`
|
|
padding-right: ${({ theme }) => theme.spacing(14)};
|
|
`;
|
|
|
|
export const SettingsConnectedAccountsTableHeader = () => {
|
|
return (
|
|
<Table>
|
|
<TableRow gridAutoColumns="332px 1fr">
|
|
<StyledTableHeader>
|
|
<Trans>Account</Trans>
|
|
</StyledTableHeader>
|
|
<StyledTableHeader align="right">
|
|
<Trans>Status</Trans>
|
|
</StyledTableHeader>
|
|
</TableRow>
|
|
</Table>
|
|
);
|
|
};
|