From ae5020669ab4dd9638ad53af0fc51c199cb1b3b1 Mon Sep 17 00:00:00 2001 From: sylenien Date: Mon, 10 Oct 2022 14:01:37 +0200 Subject: [PATCH] change(ui): change slack sending, change team badge to single div --- .../Session_/Player/Controls/components/CreateNote.tsx | 9 ++++++--- .../SessionListContainer/components/Notes/NoteItem.tsx | 2 +- .../SessionListContainer/components/Notes/TeamBadge.tsx | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx b/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx index 902dc0034..af95e5eea 100644 --- a/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx +++ b/frontend/app/components/Session_/Player/Controls/components/CreateNote.tsx @@ -138,8 +138,10 @@ function CreateNote({ label: name, })).toJS() as unknown as { value: string, label: string }[] - const changeChannel = ({ value, name }: { value: string; name: string }) => { - setChannel(value); + slackChannelsOptions.unshift({ value: null, label: 'Share to slack?' }) + + const changeChannel = ({ value, name }: { value: Record; name: string }) => { + setChannel(value.value); }; return ( @@ -210,7 +212,8 @@ function CreateNote({