fb737e2021
* Refactor icons passed as props with the new way Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> * Update more files Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> * Fix according to review * Fix according to review * Fix according to review * Fix chromatic regressions --------- Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
29 lines
801 B
TypeScript
29 lines
801 B
TypeScript
import { Button } from '@/ui/button/components/Button';
|
|
import { ButtonGroup } from '@/ui/button/components/ButtonGroup';
|
|
import { IconCheckbox, IconNotes, IconTimelineEvent } from '@/ui/icon/index';
|
|
|
|
type ActivityCreateButtonProps = {
|
|
onNoteClick?: () => void;
|
|
onTaskClick?: () => void;
|
|
onActivityClick?: () => void;
|
|
};
|
|
|
|
export function ActivityCreateButton({
|
|
onNoteClick,
|
|
onTaskClick,
|
|
onActivityClick,
|
|
}: ActivityCreateButtonProps) {
|
|
return (
|
|
<ButtonGroup variant={'secondary'}>
|
|
<Button Icon={IconNotes} title="Note" onClick={onNoteClick} />
|
|
<Button Icon={IconCheckbox} title="Task" onClick={onTaskClick} />
|
|
<Button
|
|
Icon={IconTimelineEvent}
|
|
title="Activity"
|
|
soon={true}
|
|
onClick={onActivityClick}
|
|
/>
|
|
</ButtonGroup>
|
|
);
|
|
}
|