2394-feat(front): create new record on click of plus icon (#2660)
* 2394-feat(front): create new record on click of plus icon * 2394-feat(front): fix of Icon Button * 2394-fix: PR fixes --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -24,8 +24,10 @@ const StyledContainer = styled.div`
|
||||
|
||||
export const RecordTableContainer = ({
|
||||
objectNamePlural,
|
||||
createRecord,
|
||||
}: {
|
||||
objectNamePlural: string;
|
||||
createRecord: () => void;
|
||||
}) => {
|
||||
const { objectMetadataItem: foundObjectMetadataItem } = useObjectMetadataItem(
|
||||
{
|
||||
@ -87,7 +89,8 @@ export const RecordTableContainer = ({
|
||||
<RecordTable
|
||||
recordTableId={recordTableId}
|
||||
viewBarId={viewBarId}
|
||||
updateEntityMutation={updateEntity}
|
||||
updateRecordMutation={updateEntity}
|
||||
createRecord={createRecord}
|
||||
/>
|
||||
</StyledContainer>
|
||||
);
|
||||
|
||||
@ -67,7 +67,10 @@ export const RecordTablePage = () => {
|
||||
</PageHeader>
|
||||
<PageBody>
|
||||
<StyledTableContainer>
|
||||
<RecordTableContainer objectNamePlural={objectNamePlural} />
|
||||
<RecordTableContainer
|
||||
objectNamePlural={objectNamePlural}
|
||||
createRecord={handleAddButtonClick}
|
||||
/>
|
||||
</StyledTableContainer>
|
||||
<RecordTableActionBar />
|
||||
<RecordTableContextMenu />
|
||||
|
||||
Reference in New Issue
Block a user