diff --git a/app/javascript/gabsocial/components/autosuggest_account.js b/app/javascript/gabsocial/components/autosuggest_account.js index 496ecbbe..1b98b039 100644 --- a/app/javascript/gabsocial/components/autosuggest_account.js +++ b/app/javascript/gabsocial/components/autosuggest_account.js @@ -1,18 +1,18 @@ -import ImmutablePropTypes from 'react-immutable-proptypes'; -import ImmutablePureComponent from 'react-immutable-pure-component'; -import { makeGetAccount } from '../selectors'; -import Avatar from './avatar'; -import DisplayName from './display_name'; +import ImmutablePropTypes from 'react-immutable-proptypes' +import ImmutablePureComponent from 'react-immutable-pure-component' +import { makeGetAccount } from '../selectors' +import Avatar from './avatar' +import DisplayName from './display_name' const makeMapStateToProps = () => { - const getAccount = makeGetAccount(); + const getAccount = makeGetAccount() const mapStateToProps = (state, { id }) => ({ account: getAccount(state, id), - }); + }) - return mapStateToProps; -}; + return mapStateToProps +} export default @connect(makeMapStateToProps) @@ -23,16 +23,19 @@ class AutosuggestAccount extends ImmutablePureComponent { } render () { - const { account } = this.props; + const { account } = this.props return ( -
-
- +
+ +
+
-
- ); + ) } } diff --git a/app/javascript/gabsocial/components/autosuggest_emoji.js b/app/javascript/gabsocial/components/autosuggest_emoji.js index 7fe7cc53..ae6b2f85 100644 --- a/app/javascript/gabsocial/components/autosuggest_emoji.js +++ b/app/javascript/gabsocial/components/autosuggest_emoji.js @@ -1,36 +1,8 @@ import unicodeMapping from './emoji/emoji_unicode_mapping_light' +import Text from './text' const assetHost = process.env.CDN_HOST || '' -// .autosuggest-emoji { -// display: flex; -// justify-items: center; -// align-content: flex-start; -// flex-direction: row; - -// @include text-sizing(14px, 400, 18px); - -// img { -// display: block; -// margin-right: 8px; - -// @include size(16px); -// } -// } - -// .emojione { -// font-size: inherit; -// vertical-align: middle; -// object-fit: contain; -// margin: -.2ex .15em .2ex; - -// @include size(16px); - -// img { -// width: auto; -// } -// } - export default class AutosuggestEmoji extends PureComponent { static propTypes = { @@ -52,9 +24,11 @@ export default class AutosuggestEmoji extends PureComponent { } return ( -
+
{emoji.native - {emoji.colons} + + {emoji.colons} +
) }