File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed
frontend/src/components/Topics/Topic/SendMessage Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { Button } from 'components/common/Button/Button';
55import Editor from 'components/common/Editor/Editor' ;
66import Select from 'components/common/Select/Select' ;
77import Switch from 'components/common/Switch/Switch' ;
8+ import Tooltip from 'components/common/Tooltip/Tooltip' ;
9+ import InfoIcon from 'components/common/Icons/InfoIcon' ;
810import useAppParams from 'lib/hooks/useAppParams' ;
911import { showAlert } from 'lib/errorHandling' ;
1012import { useSendMessage , useTopicDetails } from 'lib/hooks/api/topics' ;
@@ -190,16 +192,6 @@ const SendMessage: React.FC<SendMessageProps> = ({
190192 />
191193 </ S . FlexItem >
192194 </ S . Flex >
193- < div >
194- < Controller
195- control = { control }
196- name = "keepContents"
197- render = { ( { field : { name, onChange, value } } ) => (
198- < Switch name = { name } onChange = { onChange } checked = { value } />
199- ) }
200- />
201- < InputLabel > Keep contents</ InputLabel >
202- </ div >
203195 </ S . Columns >
204196 < S . Columns >
205197 < div >
@@ -253,6 +245,22 @@ const SendMessage: React.FC<SendMessageProps> = ({
253245 />
254246 </ div >
255247 </ S . Columns >
248+ < S . Columns >
249+ < S . Flex >
250+ < Controller
251+ control = { control }
252+ name = "keepContents"
253+ render = { ( { field : { name, onChange, value } } ) => (
254+ < Switch name = { name } onChange = { onChange } checked = { value } />
255+ ) }
256+ />
257+ < InputLabel > Keep contents after producing a message</ InputLabel >
258+ < Tooltip
259+ value = { < InfoIcon /> }
260+ content = "When enabled, the form will remain populated after sending a message."
261+ />
262+ </ S . Flex >
263+ </ S . Columns >
256264 < Button
257265 buttonSize = "M"
258266 buttonType = "primary"
You can’t perform that action at this time.
0 commit comments