diff options
Diffstat (limited to 'app/javascript/flavours/glitch/features/composer/options/dropdown/content')
-rw-r--r-- | app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js | 6 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/composer/options/dropdown/content/item/index.js | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js b/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js index 28bdfc0db..b3a472999 100644 --- a/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js +++ b/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js @@ -96,7 +96,7 @@ export default class ComposerOptionsDropdownContent extends React.PureComponent transform: `scale(${scaleX}, ${scaleY})`, }} > - {items.map( + {items ? items.map( ({ name, ...rest @@ -110,7 +110,7 @@ export default class ComposerOptionsDropdownContent extends React.PureComponent options={rest} /> ) - )} + ) : null} </div> )} </Motion> @@ -127,7 +127,7 @@ ComposerOptionsDropdownContent.propTypes = { name: PropTypes.string.isRequired, on: PropTypes.bool, text: PropTypes.node, - })).isRequired, + })), onChange: PropTypes.func, onClose: PropTypes.func, style: PropTypes.object, diff --git a/app/javascript/flavours/glitch/features/composer/options/dropdown/content/item/index.js b/app/javascript/flavours/glitch/features/composer/options/dropdown/content/item/index.js index 605c945bd..68a52083f 100644 --- a/app/javascript/flavours/glitch/features/composer/options/dropdown/content/item/index.js +++ b/app/javascript/flavours/glitch/features/composer/options/dropdown/content/item/index.js @@ -104,7 +104,10 @@ export default class ComposerOptionsDropdownContentItem extends React.PureCompon <strong>{text}</strong> {meta} </div> - ) : <div className='content'>{text}</div>} + ) : + <div className='content'> + <strong>{text}</strong> + </div>} </div> ); } |