-
-
{(claim.value && claim.value.title) || value}
-
{value}
+
+ {claimTitle || value}
+ {value}
);
diff --git a/ui/component/textareaWithSuggestions/index.js b/ui/component/textareaWithSuggestions/index.js
index 238d81bfc..e2213b28d 100644
--- a/ui/component/textareaWithSuggestions/index.js
+++ b/ui/component/textareaWithSuggestions/index.js
@@ -4,7 +4,6 @@ import { doSetMentionSearchResults } from 'redux/actions/search';
import { makeSelectWinningUriForQuery } from 'redux/selectors/search';
import { MAX_LIVESTREAM_COMMENTS } from 'constants/livestream';
import { selectChannelMentionData } from 'redux/selectors/comments';
-import { selectShowMatureContent } from 'redux/selectors/settings';
import { withRouter } from 'react-router';
import TextareaWithSuggestions from './view';
@@ -32,13 +31,12 @@ const select = (state, props) => {
commentorUris,
hasNewResolvedResults,
searchQuery: query,
- showMature: selectShowMatureContent(state),
};
};
-const perform = (dispatch) => ({
- doResolveUris: (uris) => dispatch(doResolveUris(uris, true)),
- doSetMentionSearchResults: (query, uris) => dispatch(doSetMentionSearchResults(query, uris)),
-});
+const perform = {
+ doResolveUris,
+ doSetMentionSearchResults,
+};
export default withRouter(connect(select, perform)(TextareaWithSuggestions));
diff --git a/ui/component/textareaWithSuggestions/render-group.jsx b/ui/component/textareaWithSuggestions/render-group.jsx
new file mode 100644
index 000000000..4295f13ce
--- /dev/null
+++ b/ui/component/textareaWithSuggestions/render-group.jsx
@@ -0,0 +1,33 @@
+// @flow
+import LbcSymbol from 'component/common/lbc-symbol';
+import React from 'react';
+
+type Props = {
+ groupName: string,
+ suggestionTerm?: ?string,
+ searchQuery?: string,
+ children: any,
+};
+
+const TextareaSuggestionsGroup = (props: Props) => {
+ const { groupName, suggestionTerm, searchQuery, children } = props;
+
+ return (
+
+
+
+ {children}
+
+
+ );
+};
+
+export default TextareaSuggestionsGroup;
diff --git a/ui/component/textareaWithSuggestions/render-input.jsx b/ui/component/textareaWithSuggestions/render-input.jsx
new file mode 100644
index 000000000..719243579
--- /dev/null
+++ b/ui/component/textareaWithSuggestions/render-input.jsx
@@ -0,0 +1,51 @@
+// @flow
+import { useIsMobile } from 'effects/use-screensize';
+import * as ICONS from 'constants/icons';
+import React from 'react';
+import TextField from '@mui/material/TextField';
+import Button from 'component/button';
+import Zoom from '@mui/material/Zoom';
+
+type Props = {
+ params: any,
+ messageValue: string,
+ inputDefaultProps: any,
+ inputRef: any,
+ handleEmojis: () => any,
+ handleTip: (isLBC: boolean) => void,
+ handleSubmit: () => any,
+};
+
+const TextareaSuggestionsInput = (props: Props) => {
+ const { params, messageValue, inputRef, inputDefaultProps, handleEmojis, handleTip, handleSubmit } = props;
+
+ const isMobile = useIsMobile();
+
+ const { InputProps, disabled, fullWidth, id, inputProps: autocompleteInputProps } = params;
+ const inputProps = { ...autocompleteInputProps, ...inputDefaultProps };
+ const autocompleteProps = { InputProps, disabled, fullWidth, id, inputProps };
+
+ if (isMobile) {
+ InputProps.startAdornment =
;
+ InputProps.endAdornment = (
+ <>
+