From d7e4b4116f5e6fe0c9d0d015a85bcae6a39d7b27 Mon Sep 17 00:00:00 2001 From: Lucas Bordeau Date: Wed, 31 Jan 2024 12:12:51 +0100 Subject: [PATCH] Minor fixes empty state (#3703) * Minor fixes for Timeline empty states * Refactored TimelineCreateButtonGroup --- .../components/ActivityCreateButton.tsx | 30 ----------- .../tasks/components/TaskGroups.tsx | 2 +- .../timeline/components/Timeline.tsx | 20 +------ .../components/TimelineCreateButtonGroup.tsx | 53 +++++++++++++++++++ .../components/RecordTableWithWrappers.tsx | 9 ++-- .../components/EmptyPlaceholderStyled.tsx | 1 - .../components/ShowPageRightContainer.tsx | 2 +- 7 files changed, 62 insertions(+), 55 deletions(-) delete mode 100644 packages/twenty-front/src/modules/activities/components/ActivityCreateButton.tsx create mode 100644 packages/twenty-front/src/modules/activities/timeline/components/TimelineCreateButtonGroup.tsx diff --git a/packages/twenty-front/src/modules/activities/components/ActivityCreateButton.tsx b/packages/twenty-front/src/modules/activities/components/ActivityCreateButton.tsx deleted file mode 100644 index 8dd8dfcc1f..0000000000 --- a/packages/twenty-front/src/modules/activities/components/ActivityCreateButton.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { - IconCheckbox, - IconNotes, - IconTimelineEvent, -} from '@/ui/display/icon/index'; -import { Button } from '@/ui/input/button/components/Button'; -import { ButtonGroup } from '@/ui/input/button/components/ButtonGroup'; - -type ActivityCreateButtonProps = { - onNoteClick?: () => void; - onTaskClick?: () => void; - onActivityClick?: () => void; -}; - -export const ActivityCreateButton = ({ - onNoteClick, - onTaskClick, - onActivityClick, -}: ActivityCreateButtonProps) => ( - -