* feat: rename commentThread into activity server * feat: rename commentThread into activity front * feat: migration only create tables feat: migration only create tables * Update activities * fix: rebase partial fix * fix: all rebase problems and drop activity target alter * fix: lint * Update migration * Update migration * Fix conflicts * Fix conflicts --------- Co-authored-by: Charles Bochet <charles@twenty.com>
15 lines
642 B
TypeScript
15 lines
642 B
TypeScript
import { useOpenCreateActivityDrawerForSelectedRowIds } from '@/activities/hooks/useOpenCreateActivityDrawerForSelectedRowIds';
|
|
import { TableActionBarButtonToggleComments } from '@/ui/table/action-bar/components/TableActionBarButtonOpenComments';
|
|
import { CommentableType } from '~/generated/graphql';
|
|
|
|
export function TableActionBarButtonCreateActivityCompany() {
|
|
const openCreateActivityRightDrawer =
|
|
useOpenCreateActivityDrawerForSelectedRowIds();
|
|
|
|
async function handleButtonClick() {
|
|
openCreateActivityRightDrawer(CommentableType.Company);
|
|
}
|
|
|
|
return <TableActionBarButtonToggleComments onClick={handleButtonClick} />;
|
|
}
|