Skip to content

Commit

Permalink
attachement table flex
Browse files Browse the repository at this point in the history
  • Loading branch information
hervedombya committed Jul 13, 2023
1 parent b6f10dd commit 6717898
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/organisms/attachments/AttachmentTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,10 @@ export const AttachmentTable = <ENTITY_TYPE,>({
<Table
columns={[
{
Header: 'Name',
Header: <Box flex={1.5}>Name</Box>,
accessor: 'name',
cellStyle: {
flex: 1,
flex: 1.5,
},
Cell: ({
value,
Expand Down Expand Up @@ -640,21 +640,21 @@ export const AttachmentTable = <ENTITY_TYPE,>({
},
},
{
Header: 'Attachment status',
Header: <Box flex={0.5}>Attachment status</Box>,
accessor: 'isPending',
cellStyle: {
flex: 1,
flex: 0.5,
},
Cell: ({ value }: { value?: boolean }) => {
return value ? <>Pending</> : <>Attached</>;
},
},
{
Header: '',
Header: <Box flex={0.3}></Box>,
accessor: 'action',
cellStyle: {
textAlign: 'right',
flex: '1',
flex: 0.3,
marginLeft: 'auto',
marginRight: '0.5rem',
},
Expand Down

0 comments on commit 6717898

Please sign in to comment.