From 4896a66d648fa137d609ee61243e33ba78e8b9b0 Mon Sep 17 00:00:00 2001
From: Felipe Martin <812088+fmartingr@users.noreply.github.com>
Date: Wed, 11 Oct 2023 10:54:37 +0200
Subject: [PATCH] ui: removed create calendar icon from menu option (#44)
---
webapp/src/images/calendar-outline.svg | 1 -
webapp/src/images/calendar-plus-outline.svg | 1 -
webapp/src/index.tsx | 10 +---------
3 files changed, 1 insertion(+), 11 deletions(-)
delete mode 100644 webapp/src/images/calendar-outline.svg
delete mode 100644 webapp/src/images/calendar-plus-outline.svg
diff --git a/webapp/src/images/calendar-outline.svg b/webapp/src/images/calendar-outline.svg
deleted file mode 100644
index 1f7a60b..0000000
--- a/webapp/src/images/calendar-outline.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/webapp/src/images/calendar-plus-outline.svg b/webapp/src/images/calendar-plus-outline.svg
deleted file mode 100644
index cb3903d..0000000
--- a/webapp/src/images/calendar-plus-outline.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/webapp/src/index.tsx b/webapp/src/index.tsx
index 20414fd..d839a65 100644
--- a/webapp/src/index.tsx
+++ b/webapp/src/index.tsx
@@ -11,11 +11,8 @@ import {PluginId} from './plugin_id';
import Hooks from './plugin_hooks';
import reducer from './reducers';
-import CalendarOutlineIcon from './images/calendar-plus-outline.svg';
-
import CreateEventModal from './components/modals/create_event_modal';
import {getProviderConfiguration, handleConnectChange, openCreateEventModal} from './actions';
-import Icon from './components/icon';
// eslint-disable-next-line @typescript-eslint/no-empty-function
export default class Plugin {
@@ -30,12 +27,7 @@ export default class Plugin {
await store.dispatch(getProviderConfiguration());
registry.registerChannelHeaderMenuAction(
- (
-
-
- {'Create calendar event'}
-
- ),
+ {'Create calendar event'},
async (channelID) => {
if (await hooks.checkUserIsConnected()) {
store.dispatch(openCreateEventModal(channelID));