added button in nav bar for kanban view (#6829)
@Bonapara Addressing issue #6783. I tried to achieve the exact behavior you were looking for, but I couldn't get the dropdown to render correctly in that specific column. I'd love some help to make sure it's working as expected! 😊 Most of the logic is shared with the `useHandleOpportunity` and `useAddNewCard` hooks, which could be refactored to reduce code debt. Also, please go harsh with the review because I know there's a lot of code cleaning required. I also agree with Charles's point in [this comment](https://github.com/twentyhq/twenty/issues/6783#issuecomment-2323299840). Thanks :) https://github.com/user-attachments/assets/bccdb3f1-3946-4e22-b9a4-b7496ef134c9
This commit is contained in:
@ -42,7 +42,11 @@ export const RecordIndexPage = () => {
|
||||
return (
|
||||
<PageContainer>
|
||||
<PageTitle title={`${capitalize(objectNamePlural)}`} />
|
||||
<RecordIndexPageHeader createRecord={handleAddButtonClick} />
|
||||
<RecordIndexPageHeader
|
||||
createRecord={handleAddButtonClick}
|
||||
recordIndexId={recordIndexId}
|
||||
objectNamePlural={objectNamePlural}
|
||||
/>
|
||||
<PageBody>
|
||||
<StyledIndexContainer>
|
||||
<RecordIndexContainer
|
||||
|
||||
Reference in New Issue
Block a user