mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
parent
7e264565ef
commit
802bd5db5d
@ -27,7 +27,6 @@ export function ShowPageAddButton({
|
|||||||
const openCreateActivity = useOpenCreateActivityDrawer();
|
const openCreateActivity = useOpenCreateActivityDrawer();
|
||||||
|
|
||||||
function handleSelect(type: ActivityType) {
|
function handleSelect(type: ActivityType) {
|
||||||
console.log(type, entity);
|
|
||||||
openCreateActivity(type, [entity]);
|
openCreateActivity(type, [entity]);
|
||||||
closeDropdownButton();
|
closeDropdownButton();
|
||||||
}
|
}
|
||||||
@ -59,7 +58,7 @@ export function ShowPageAddButton({
|
|||||||
Note
|
Note
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
onClick={() => handleSelect(ActivityType.Note)}
|
onClick={() => handleSelect(ActivityType.Task)}
|
||||||
accent="regular"
|
accent="regular"
|
||||||
>
|
>
|
||||||
<IconCheckbox size={16} />
|
<IconCheckbox size={16} />
|
||||||
|
Loading…
Reference in New Issue
Block a user