Merge commit 'd20d04922672ed016029c40ed64798f341ebca91' into glitch-soc/merge-upstream
This commit is contained in:
commit
06176deee2
50 files changed
+710
-112
No files matched your search
@@ -248,7 +248,15 @@ class ComposeForm extends ImmutablePureComponent {
|
||||
const { intl, onPaste, onDrop, autoFocus, withoutNavigation, maxChars, isSubmitting } = this.props;
|
||||
|
||||
return (
|
||||
<form className='compose-form' onSubmit={this.handleSubmit}>
|
||||
<form
|
||||
className='compose-form'
|
||||
role='region'
|
||||
aria-label={intl.formatMessage({
|
||||
id: 'tabs_bar.publish',
|
||||
defaultMessage: 'New Post'
|
||||
})}
|
||||
onSubmit={this.handleSubmit}
|
||||
>
|
||||
<ReplyIndicator />
|
||||
{!withoutNavigation && <NavigationBar />}
|
||||
<Warning />
|
||||
|
||||
@@ -58,7 +58,7 @@ const Option = ({ multipleChoice, index, title, autoFocus }) => {
|
||||
const dispatch = useDispatch();
|
||||
const suggestions = useSelector(state => state.getIn(['compose', 'suggestions']));
|
||||
const lang = useSelector(state => state.getIn(['compose', 'language']));
|
||||
const maxOptions = useSelector(state => state.getIn(['server', 'server', 'configuration', 'polls', 'max_options']));
|
||||
const maxOptions = useSelector(state => state.getIn(['server', 'server', 'item', 'configuration', 'polls', 'max_options']));
|
||||
|
||||
const handleChange = useCallback(({ target: { value } }) => {
|
||||
dispatch(changePollOption(index, value, maxOptions));
|
||||
|
||||
@@ -547,11 +547,15 @@ export const Search: React.FC<{
|
||||
const searchOptionsHeading = useId();
|
||||
|
||||
return (
|
||||
<form ref={formRef} className={classNames('search', { active: expanded })}>
|
||||
<form
|
||||
role='search'
|
||||
ref={formRef}
|
||||
className={classNames('search', { active: expanded })}
|
||||
>
|
||||
<input
|
||||
ref={searchInputRef}
|
||||
className='search__input'
|
||||
type='text'
|
||||
type='search'
|
||||
placeholder={intl.formatMessage(
|
||||
signedIn ? messages.placeholderSignedIn : messages.placeholder,
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user