From 740a51740913ff971a559a60316629fdb7866415 Mon Sep 17 00:00:00 2001 From: MyNameIsBatman Date: Sun, 13 Feb 2022 19:55:21 -0300 Subject: [PATCH] Add tags to room-settings --- .../NavigatorRoomSettingsView.tsx | 2 +- .../NavigatorRoomSettingsBasicTabView.tsx | 35 +++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx b/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx index 8fe49ce2..628eca33 100644 --- a/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx +++ b/src/views/navigator/views/room-settings/NavigatorRoomSettingsView.tsx @@ -143,7 +143,7 @@ export const NavigatorRoomSettingsView: FC<{}> = props => return setCurrentTab(tab) }>{ LocalizeText(tab) } }) } - + { currentTab === TABS[0] && } { currentTab === TABS[1] && } { currentTab === TABS[2] && } diff --git a/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx b/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx index 64329cc1..131b19a2 100644 --- a/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx +++ b/src/views/navigator/views/room-settings/views/tab-basic/NavigatorRoomSettingsBasicTabView.tsx @@ -36,6 +36,30 @@ export const NavigatorRoomSettingsBasicTabView: FC{ LocalizeText('navigator.roomsettings.trade_allowed') } -
+
+ +
+ 0 ? roomSettingsData.tags[0] : '' } onChange={ event => handleChange('tag_1', event.target.value) } onBlur={ () => onSave(roomSettingsData) } /> + 1 ? roomSettingsData.tags[1] : '' } onChange={ event => handleChange('tag_2', event.target.value) } onBlur={ () => onSave(roomSettingsData) } /> +
+
+
handleChange('allow_walkthrough', event.target.checked) } />
-
+