[Glitch] Fix hashtag column options styling
Port a783bdf4ad
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
e9ad99bc93
commit
8b17d47e12
|
@ -4,6 +4,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
|
||||||
import Toggle from 'react-toggle';
|
import Toggle from 'react-toggle';
|
||||||
import AsyncSelect from 'react-select/async';
|
import AsyncSelect from 'react-select/async';
|
||||||
|
import { NonceProvider } from 'react-select';
|
||||||
import SettingToggle from '../../notifications/components/setting_toggle';
|
import SettingToggle from '../../notifications/components/setting_toggle';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
@ -58,18 +59,20 @@ class ColumnSettings extends React.PureComponent {
|
||||||
{this.modeLabel(mode)}
|
{this.modeLabel(mode)}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<AsyncSelect
|
<NonceProvider nonce={document.querySelector('meta[name=style-nonce]').content}>
|
||||||
isMulti
|
<AsyncSelect
|
||||||
autoFocus
|
isMulti
|
||||||
value={this.tags(mode)}
|
autoFocus
|
||||||
onChange={this.onSelect(mode)}
|
value={this.tags(mode)}
|
||||||
loadOptions={this.props.onLoad}
|
onChange={this.onSelect(mode)}
|
||||||
className='column-select__container'
|
loadOptions={this.props.onLoad}
|
||||||
classNamePrefix='column-select'
|
className='column-select__container'
|
||||||
name='tags'
|
classNamePrefix='column-select'
|
||||||
placeholder={this.props.intl.formatMessage(messages.placeholder)}
|
name='tags'
|
||||||
noOptionsMessage={this.noOptionsMessage}
|
placeholder={this.props.intl.formatMessage(messages.placeholder)}
|
||||||
/>
|
noOptionsMessage={this.noOptionsMessage}
|
||||||
|
/>
|
||||||
|
</NonceProvider>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue