From 636d68b54c01a4357e4b341c7f62d44379408bfc Mon Sep 17 00:00:00 2001 From: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Date: Wed, 2 Aug 2023 13:10:02 +0800 Subject: [PATCH] Move trash icon to the top bar of right drawer (#1014) * Move trash icon to the top bar of right drawer Co-authored-by: Matheus * Fix background Co-authored-by: Matheus * Refactor the code Co-authored-by: Matheus --------- Co-authored-by: Matheus --- .../activities/components/ActivityEditor.tsx | 14 +------------- .../components/ActivityActionBar.tsx | 9 ++++----- .../components/RightDrawerTopBar.tsx | 17 ++++++++++++++--- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/front/src/modules/activities/components/ActivityEditor.tsx b/front/src/modules/activities/components/ActivityEditor.tsx index 284df84a6622..fe3bb29e90a2 100644 --- a/front/src/modules/activities/components/ActivityEditor.tsx +++ b/front/src/modules/activities/components/ActivityEditor.tsx @@ -21,7 +21,6 @@ import { debounce } from '~/utils/debounce'; import { ActivityAssigneeEditableField } from '../editable-fields/components/ActivityAssigneeEditableField'; import { ActivityRelationEditableField } from '../editable-fields/components/ActivityRelationEditableField'; -import { ActivityActionBar } from '../right-drawer/components/ActivityActionBar'; import { CommentForDrawer } from '../types/CommentForDrawer'; import { ActivityTitle } from './ActivityTitle'; @@ -59,14 +58,6 @@ const StyledTopContainer = styled.div` padding: 24px 24px 24px 48px; `; -const StyledTopActionsContainer = styled.div` - align-items: center; - display: flex; - flex-direction: row; - justify-content: space-between; - width: 100%; -`; - type OwnProps = { activity: Pick< Activity, @@ -155,10 +146,7 @@ export function ActivityEditor({ - - - - + theme.font.color.tertiary}; - cursor: pointer; + border: 1px solid ${({ theme }) => theme.border.color.medium}; + border-radius: ${({ theme }) => theme.border.radius.sm}; `; type OwnProps = { @@ -39,12 +39,11 @@ export function ActivityActionBar({ activityId }: OwnProps) { return ( -