Remove React, PureComponent global import, added those imports to files directly
• Remove: - React, PureComponent global import and added those imports to files directly
This commit is contained in:
parent
92a89e2425
commit
43e384554c
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
|
@ -123,10 +123,10 @@ class Account extends ImmutablePureComponent {
|
||||||
|
|
||||||
if (isHidden) {
|
if (isHidden) {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
{account.get('display_name')}
|
{account.get('display_name')}
|
||||||
{`@${account.get('username')}`}
|
{`@${account.get('username')}`}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { makeGetAccount } from '../selectors'
|
import { makeGetAccount } from '../selectors'
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
import React from 'react'
|
||||||
import unicodeMapping from './emoji/emoji_unicode_mapping_light'
|
import unicodeMapping from './emoji/emoji_unicode_mapping_light'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
|
||||||
const assetHost = process.env.CDN_HOST || ''
|
const assetHost = process.env.CDN_HOST || ''
|
||||||
|
|
||||||
export default class AutosuggestEmoji extends PureComponent {
|
export default class AutosuggestEmoji extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
emoji: PropTypes.object.isRequired,
|
emoji: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import isObject from 'lodash.isobject'
|
import isObject from 'lodash.isobject'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
|
@ -249,7 +249,7 @@ export default class AutosuggestTextbox extends ImmutablePureComponent {
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<div className={textareaContainerClasses}>
|
<div className={textareaContainerClasses}>
|
||||||
<label htmlFor={id} className={_s.visiblyHidden}>
|
<label htmlFor={id} className={_s.visiblyHidden}>
|
||||||
{placeholder}
|
{placeholder}
|
||||||
|
@ -302,7 +302,7 @@ export default class AutosuggestTextbox extends ImmutablePureComponent {
|
||||||
{suggestions.map(this.renderSuggestion)}
|
{suggestions.map(this.renderSuggestion)}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import debounce from 'lodash.debounce'
|
import debounce from 'lodash.debounce'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
import React from 'react'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
|
|
||||||
export default class BackButton extends PureComponent {
|
export default class BackButton extends React.PureComponent {
|
||||||
|
|
||||||
static contextTypes = {
|
static contextTypes = {
|
||||||
router: PropTypes.object,
|
router: PropTypes.object,
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders a block component
|
* Renders a block component
|
||||||
*/
|
*/
|
||||||
export default class Block extends PureComponent {
|
export default class Block extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
children: PropTypes.any,
|
children: PropTypes.any,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
import React from 'react'
|
||||||
import Heading from './heading'
|
import Heading from './heading'
|
||||||
|
|
||||||
export default class BlockHeading extends PureComponent {
|
export default class BlockHeading extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
title: PropTypes.string.isRequired,
|
title: PropTypes.string.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'
|
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'
|
||||||
import {
|
import {
|
||||||
source_url,
|
source_url,
|
||||||
|
@ -20,7 +21,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class BundleColumnError extends PureComponent {
|
class BundleColumnError extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onRetry: PropTypes.func.isRequired,
|
onRetry: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
|
@ -45,7 +45,7 @@ const COLORS = {
|
||||||
* @param {bool} [props.type] - `type` attribute for button
|
* @param {bool} [props.type] - `type` attribute for button
|
||||||
* @param {bool} [props.underlineOnHover] - if the button has underline on hover
|
* @param {bool} [props.underlineOnHover] - if the button has underline on hover
|
||||||
*/
|
*/
|
||||||
export default class Button extends PureComponent {
|
export default class Button extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
backgroundColor: PropTypes.string,
|
backgroundColor: PropTypes.string,
|
||||||
|
@ -204,10 +204,10 @@ export default class Button extends PureComponent {
|
||||||
) : undefined
|
) : undefined
|
||||||
|
|
||||||
const theChildren = !!icon ? (
|
const theChildren = !!icon ? (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
{theIcon}
|
{theIcon}
|
||||||
{children}
|
{children}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
) : children
|
) : children
|
||||||
|
|
||||||
const handlers = {
|
const handlers = {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { length } from 'stringz'
|
import { length } from 'stringz'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +6,7 @@ import { length } from 'stringz'
|
||||||
* @param {string} props.text - text to use to measure
|
* @param {string} props.text - text to use to measure
|
||||||
* @param {number} props.max - max text allowed
|
* @param {number} props.max - max text allowed
|
||||||
*/
|
*/
|
||||||
export default class CharacterCounter extends PureComponent {
|
export default class CharacterCounter extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
text: PropTypes.string.isRequired,
|
text: PropTypes.string.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
@ -9,7 +10,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class ColumnIndicator extends PureComponent {
|
class ColumnIndicator extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
@ -247,7 +248,7 @@ class Comment extends ImmutablePureComponent {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class CommentButton extends PureComponent {
|
class CommentButton extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onClick: PropTypes.func.isRequired,
|
onClick: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
@ -87,7 +87,7 @@ class CommentHeader extends ImmutablePureComponent {
|
||||||
|
|
||||||
{
|
{
|
||||||
!!status.get('group') &&
|
!!status.get('group') &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
<Button
|
<Button
|
||||||
isText
|
isText
|
||||||
|
@ -101,12 +101,12 @@ class CommentHeader extends ImmutablePureComponent {
|
||||||
{status.getIn(['group', 'title'])}
|
{status.getIn(['group', 'title'])}
|
||||||
</Text>
|
</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
status.get('revised_at') !== null &&
|
status.get('revised_at') !== null &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
<Button
|
<Button
|
||||||
isText
|
isText
|
||||||
|
@ -120,12 +120,12 @@ class CommentHeader extends ImmutablePureComponent {
|
||||||
{intl.formatMessage(messages.edited)}
|
{intl.formatMessage(messages.edited)}
|
||||||
</Text>
|
</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
favoriteCount > 0 &&
|
favoriteCount > 0 &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
<Button
|
<Button
|
||||||
isText
|
isText
|
||||||
|
@ -141,12 +141,12 @@ class CommentHeader extends ImmutablePureComponent {
|
||||||
})}
|
})}
|
||||||
</Text>
|
</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
repostCount > 0 &&
|
repostCount > 0 &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
<Button
|
<Button
|
||||||
isText
|
isText
|
||||||
|
@ -162,7 +162,7 @@ class CommentHeader extends ImmutablePureComponent {
|
||||||
})}
|
})}
|
||||||
</Text>
|
</Text>
|
||||||
</Button>
|
</Button>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
|
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
|
@ -31,7 +31,7 @@ export default class CommentList extends ImmutablePureComponent {
|
||||||
const Wrapper = !commentsLimited ? ScrollableList : Dummy
|
const Wrapper = !commentsLimited ? ScrollableList : Dummy
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<Wrapper scrollKey='comments'>
|
<Wrapper scrollKey='comments'>
|
||||||
{
|
{
|
||||||
descendants.slice(0, max).map((descendant, i) => (
|
descendants.slice(0, max).map((descendant, i) => (
|
||||||
|
@ -67,7 +67,7 @@ export default class CommentList extends ImmutablePureComponent {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
getDefaultKeyBinding,
|
getDefaultKeyBinding,
|
||||||
Editor,
|
Editor,
|
||||||
|
@ -110,7 +111,7 @@ const GROUP_HANDLE_REGEX = /\g\/[\w]+/g
|
||||||
const HANDLE_REGEX = /\@[\w]+/g
|
const HANDLE_REGEX = /\@[\w]+/g
|
||||||
const HASHTAG_REGEX = /\#[\w\u0590-\u05ff]+/g
|
const HASHTAG_REGEX = /\#[\w\u0590-\u05ff]+/g
|
||||||
|
|
||||||
export default class Composer extends PureComponent {
|
export default class Composer extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
inputRef: PropTypes.func,
|
inputRef: PropTypes.func,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import debounce from 'lodash.debounce'
|
import debounce from 'lodash.debounce'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +6,7 @@ import { CX } from '../constants'
|
||||||
* @param {bool} [props.isInvisible] - to style the tab bar larger
|
* @param {bool} [props.isInvisible] - to style the tab bar larger
|
||||||
* @param {bool} [props.isSmall] - if item is active
|
* @param {bool} [props.isSmall] - if item is active
|
||||||
*/
|
*/
|
||||||
export default class Divider extends PureComponent {
|
export default class Divider extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
isInvisible: PropTypes.bool,
|
isInvisible: PropTypes.bool,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
import React from 'react'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
|
||||||
export default class DotTextSeperator extends PureComponent {
|
export default class DotTextSeperator extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
export default class Dummy extends PureComponent {
|
import React from 'react'
|
||||||
|
|
||||||
|
export default class Dummy extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
import {
|
import {
|
||||||
source_url,
|
source_url,
|
||||||
|
@ -13,7 +14,7 @@ import Divider from './divider'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
|
||||||
export default class ErrorBoundary extends PureComponent {
|
export default class ErrorBoundary extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
children: PropTypes.node,
|
children: PropTypes.node,
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
export default class ExtendedVideoPlayer extends PureComponent {
|
import React from 'react'
|
||||||
|
|
||||||
|
export default class ExtendedVideoPlayer extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
src: PropTypes.string.isRequired,
|
src: PropTypes.string.isRequired,
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
import React from 'react'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
import Image from './image'
|
import Image from './image'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
|
||||||
export default class FileInput extends PureComponent {
|
export default class FileInput extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onChange: PropTypes.func,
|
onChange: PropTypes.func,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import { me } from '../initial_state'
|
import { me } from '../initial_state'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
|
@ -15,7 +16,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
@connect(null, mapDispatchToProps)
|
@connect(null, mapDispatchToProps)
|
||||||
class FloatingActionButton extends PureComponent {
|
class FloatingActionButton extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { withRouter } from 'react-router-dom'
|
import { withRouter } from 'react-router-dom'
|
||||||
import { me } from '../initial_state'
|
import { me } from '../initial_state'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
|
@ -11,7 +12,7 @@ const mapStateToProps = (state) => ({
|
||||||
export default
|
export default
|
||||||
@withRouter
|
@withRouter
|
||||||
@connect(mapStateToProps)
|
@connect(mapStateToProps)
|
||||||
class FooterBar extends PureComponent {
|
class FooterBar extends React.PureComponent {
|
||||||
|
|
||||||
static contextTypes = {
|
static contextTypes = {
|
||||||
router: PropTypes.object,
|
router: PropTypes.object,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
import React from 'react'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
|
||||||
export default class Form extends PureComponent {
|
export default class Form extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
children: PropTypes.any,
|
children: PropTypes.any,
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
|
import React from 'react'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
import Heading from './heading'
|
import Heading from './heading'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component'
|
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component'
|
||||||
|
|
||||||
export default class GlobalFooter extends PureComponent {
|
export default class GlobalFooter extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
|
@ -158,7 +159,7 @@ export default class GlobalFooter extends PureComponent {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class GlobalFooterColumn extends PureComponent {
|
class GlobalFooterColumn extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { Fragment } from 'react'
|
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
|
@ -52,11 +52,11 @@ class GroupCollectionItem extends ImmutablePureComponent {
|
||||||
|
|
||||||
if (isHidden) {
|
if (isHidden) {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
{group.get('title')}
|
{group.get('title')}
|
||||||
{isMember && intl.formatMessage(messages.member)}
|
{isMember && intl.formatMessage(messages.member)}
|
||||||
{isAdmin && intl.formatMessage(messages.admin)}
|
{isAdmin && intl.formatMessage(messages.admin)}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { Fragment } from 'react'
|
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import { joinGroup, leaveGroup } from '../actions/groups'
|
import { joinGroup, leaveGroup } from '../actions/groups'
|
||||||
|
@ -83,9 +83,9 @@ class GroupListItem extends ImmutablePureComponent {
|
||||||
|
|
||||||
if (isHidden) {
|
if (isHidden) {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
{group.get('title')}
|
{group.get('title')}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import { openPopover } from '../actions/popover'
|
import { openPopover } from '../actions/popover'
|
||||||
import {
|
import {
|
||||||
|
@ -53,7 +54,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
@connect(mapStateToProps, mapDispatchToProps)
|
@connect(mapStateToProps, mapDispatchToProps)
|
||||||
class GroupSortBlock extends PureComponent {
|
class GroupSortBlock extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
|
|
||||||
// Bind CSS Modules global variable `_s` to classNames module
|
// Bind CSS Modules global variable `_s` to classNames module
|
||||||
|
@ -27,7 +28,7 @@ const ARIA_LEVELS = {
|
||||||
* @param {bool} [props.isCentered] - if text is centered within the element
|
* @param {bool} [props.isCentered] - if text is centered within the element
|
||||||
* @param {string} [props.size='h1'] - the size of the heading
|
* @param {string} [props.size='h1'] - the size of the heading
|
||||||
*/
|
*/
|
||||||
export default class Heading extends PureComponent {
|
export default class Heading extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
children: PropTypes.any,
|
children: PropTypes.any,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
import React from 'react'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
|
|
||||||
export default class Icon extends PureComponent {
|
export default class Icon extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
|
import React from 'react'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
|
|
||||||
const cx = classNames.bind(_s)
|
const cx = classNames.bind(_s)
|
||||||
|
|
||||||
export default class Image extends PureComponent {
|
export default class Image extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
alt: PropTypes.string.isRequired,
|
alt: PropTypes.string.isRequired,
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
|
import React from 'react'
|
||||||
import { LoadingBar } from 'react-redux-loading-bar'
|
import { LoadingBar } from 'react-redux-loading-bar'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
import ZoomableImage from './zoomable_image'
|
import ZoomableImage from './zoomable_image'
|
||||||
|
|
||||||
export default class ImageLoader extends PureComponent {
|
export default class ImageLoader extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
alt: PropTypes.string,
|
alt: PropTypes.string,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
|
@ -6,7 +6,7 @@ import Text from './text'
|
||||||
|
|
||||||
const cx = classNames.bind(_s)
|
const cx = classNames.bind(_s)
|
||||||
|
|
||||||
export default class Input extends PureComponent {
|
export default class Input extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
placeholder: PropTypes.string,
|
placeholder: PropTypes.string,
|
||||||
|
@ -80,7 +80,7 @@ export default class Input extends PureComponent {
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
{
|
{
|
||||||
!!title && !hideLabel &&
|
!!title && !hideLabel &&
|
||||||
<div className={[_s.default, _s.mb10, _s.pl15].join(' ')}>
|
<div className={[_s.default, _s.mb10, _s.pl15].join(' ')}>
|
||||||
|
@ -128,7 +128,7 @@ export default class Input extends PureComponent {
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { is } from 'immutable'
|
import { is } from 'immutable'
|
||||||
import { setHeight } from '../actions/height_cache'
|
import { setHeight } from '../actions/height_cache'
|
||||||
import scheduleIdleTask from '../utils/schedule_idle_task'
|
import scheduleIdleTask from '../utils/schedule_idle_task'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
FormattedMessage,
|
FormattedMessage,
|
||||||
defineMessages,
|
defineMessages,
|
||||||
|
@ -36,7 +37,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
export default
|
export default
|
||||||
@connect(null, mapDispatchToProps)
|
@connect(null, mapDispatchToProps)
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class LinkFooter extends PureComponent {
|
class LinkFooter extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import Block from './block'
|
import Block from './block'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
|
@ -7,7 +7,7 @@ import Text from './text'
|
||||||
|
|
||||||
const cx = classNames.bind(_s)
|
const cx = classNames.bind(_s)
|
||||||
|
|
||||||
export default class ListItem extends PureComponent {
|
export default class ListItem extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
icon: PropTypes.string,
|
icon: PropTypes.string,
|
||||||
|
@ -59,9 +59,9 @@ export default class ListItem extends PureComponent {
|
||||||
|
|
||||||
if (isHidden) {
|
if (isHidden) {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
{title}
|
{title}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
@ -8,7 +9,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class LoadMore extends PureComponent {
|
class LoadMore extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import LoadingBar from 'react-redux-loading-bar'
|
import LoadingBar from 'react-redux-loading-bar'
|
||||||
|
|
||||||
const mapStateToProps = (state, ownProps) => ({
|
const mapStateToProps = (state, ownProps) => ({
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { BREAKPOINT_EXTRA_SMALL } from '../constants'
|
import { BREAKPOINT_EXTRA_SMALL } from '../constants'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
import NavigationBarButton from './navigation_bar_button'
|
import NavigationBarButton from './navigation_bar_button'
|
||||||
|
@ -6,7 +7,7 @@ import Text from './text'
|
||||||
import ResponsiveComponent from '../features/ui/util/responsive_component'
|
import ResponsiveComponent from '../features/ui/util/responsive_component'
|
||||||
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component'
|
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component'
|
||||||
|
|
||||||
export default class LoggedOutNavigationBar extends PureComponent {
|
export default class LoggedOutNavigationBar extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
isProfile: PropTypes.bool,
|
isProfile: PropTypes.bool,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import { me } from '../initial_state'
|
import { me } from '../initial_state'
|
||||||
import SidebarSectionTitle from './sidebar_section_title'
|
import SidebarSectionTitle from './sidebar_section_title'
|
||||||
|
@ -12,7 +13,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class Sidebar extends PureComponent {
|
class Sidebar extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { is } from 'immutable';
|
import { is } from 'immutable';
|
||||||
|
@ -238,7 +239,7 @@ class Item extends ImmutablePureComponent {
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class MediaGallery extends PureComponent {
|
class MediaGallery extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
sensitive: PropTypes.bool,
|
sensitive: PropTypes.bool,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import { makeGetAccount } from '../../selectors'
|
import { makeGetAccount } from '../../selectors'
|
||||||
import { blockAccount } from '../../actions/accounts'
|
import { blockAccount } from '../../actions/accounts'
|
||||||
|
@ -26,7 +27,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
export default
|
export default
|
||||||
@connect(mapStateToProps, mapDispatchToProps)
|
@connect(mapStateToProps, mapDispatchToProps)
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class BlockAccountModal extends PureComponent {
|
class BlockAccountModal extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
account: PropTypes.object.isRequired,
|
account: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ConfirmationModal from './confirmation_modal'
|
import ConfirmationModal from './confirmation_modal'
|
||||||
|
|
||||||
|
@ -9,7 +10,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class BundleErrorModal extends PureComponent {
|
class BundleErrorModal extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onRetry: PropTypes.func.isRequired,
|
onRetry: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { openModal } from '../../actions/modal'
|
import { openModal } from '../../actions/modal'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, FormattedMessage } from 'react-intl'
|
import { injectIntl, FormattedMessage } from 'react-intl'
|
||||||
import Block from '../block'
|
import Block from '../block'
|
||||||
import Button from '../button'
|
import Button from '../button'
|
||||||
|
@ -6,7 +7,7 @@ import Text from '../text'
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class ConfirmationModal extends PureComponent {
|
class ConfirmationModal extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
title: PropTypes.any.isRequired,
|
title: PropTypes.any.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
|
@ -198,7 +199,7 @@ class DisplayOptionsModal extends ImmutablePureComponent {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class ThemeBlock extends PureComponent {
|
class ThemeBlock extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
checked: PropTypes.bool,
|
checked: PropTypes.bool,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
@ -183,7 +183,7 @@ class EditProfileModal extends ImmutablePureComponent {
|
||||||
<div className={[_s.default, _s.py5, _s.px15, _s.mt5, _s.mb15, _s.width100PC].join(' ')}>
|
<div className={[_s.default, _s.py5, _s.px15, _s.mt5, _s.mb15, _s.width100PC].join(' ')}>
|
||||||
{
|
{
|
||||||
!isVerified &&
|
!isVerified &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<Input
|
<Input
|
||||||
id='display-name'
|
id='display-name'
|
||||||
title='Display name'
|
title='Display name'
|
||||||
|
@ -192,7 +192,7 @@ class EditProfileModal extends ImmutablePureComponent {
|
||||||
onBlur={this.handleDisplayNameBlur}
|
onBlur={this.handleDisplayNameBlur}
|
||||||
/>
|
/>
|
||||||
<Divider isInvisible />
|
<Divider isInvisible />
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
|
|
||||||
<Textarea
|
<Textarea
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import api from '../../api'
|
import api from '../../api'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component';
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import {
|
import {
|
||||||
fetchGifCategories,
|
fetchGifCategories,
|
||||||
|
@ -64,7 +65,7 @@ const mapDispatchToProps = (dispatch, { onClose }) => ({
|
||||||
export default
|
export default
|
||||||
@connect(mapStateToProps, mapDispatchToProps)
|
@connect(mapStateToProps, mapDispatchToProps)
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class GifPickerModal extends PureComponent {
|
class GifPickerModal extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
@ -165,7 +166,7 @@ class GifPickerModal extends PureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class GifResultsCollectionColumn extends PureComponent {
|
class GifResultsCollectionColumn extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
results: PropTypes.array.isRequired,
|
results: PropTypes.array.isRequired,
|
||||||
|
@ -201,7 +202,7 @@ class GifResultsCollectionColumn extends PureComponent {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class GifResultsCollection extends PureComponent {
|
class GifResultsCollection extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
results: PropTypes.array.isRequired,
|
results: PropTypes.array.isRequired,
|
||||||
|
@ -234,7 +235,7 @@ class GifResultsCollection extends PureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class GifCategoriesCollection extends PureComponent {
|
class GifCategoriesCollection extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
categories: PropTypes.array.isRequired,
|
categories: PropTypes.array.isRequired,
|
||||||
handleSelectCategory: PropTypes.func.isRequired,
|
handleSelectCategory: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ModalLayout from './modal_layout'
|
import ModalLayout from './modal_layout'
|
||||||
import GroupCreate from '../../features/group_create'
|
import GroupCreate from '../../features/group_create'
|
||||||
|
@ -9,7 +10,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class GroupCreateModal extends PureComponent {
|
class GroupCreateModal extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import { makeGetAccount } from '../../selectors'
|
import { makeGetAccount } from '../../selectors'
|
||||||
import { blockAccount } from '../../actions/accounts'
|
import { blockAccount } from '../../actions/accounts'
|
||||||
|
@ -18,7 +19,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
export default
|
export default
|
||||||
@connect(null, mapDispatchToProps)
|
@connect(null, mapDispatchToProps)
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class GroupDeleteModal extends PureComponent {
|
class GroupDeleteModal extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
group: PropTypes.object.isRequired,
|
group: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import Button from '../button'
|
import Button from '../button'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ModalLayout from './modal_layout'
|
import ModalLayout from './modal_layout'
|
||||||
|
@ -126,7 +127,7 @@ class HotkeysModal extends ImmutablePureComponent {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class HotKeysModalRow extends PureComponent {
|
class HotKeysModalRow extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
hotkey: PropTypes.string.isRequired,
|
hotkey: PropTypes.string.isRequired,
|
||||||
action: PropTypes.string.isRequired,
|
action: PropTypes.string.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ModalLayout from './modal_layout'
|
import ModalLayout from './modal_layout'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ModalLayout from './modal_layout'
|
import ModalLayout from './modal_layout'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
import React from 'react'
|
||||||
import Block from '../block'
|
import Block from '../block'
|
||||||
import ColumnIndicator from '../column_indicator'
|
import ColumnIndicator from '../column_indicator'
|
||||||
|
|
||||||
export default class LoadingModal extends PureComponent {
|
export default class LoadingModal extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ReactSwipeableViews from 'react-swipeable-views'
|
import ReactSwipeableViews from 'react-swipeable-views'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'
|
import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'
|
||||||
import { getWindowDimension } from '../../utils/is_mobile'
|
import { getWindowDimension } from '../../utils/is_mobile'
|
||||||
import { openModal } from '../../actions/modal'
|
import { openModal } from '../../actions/modal'
|
||||||
|
@ -33,7 +33,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
export default
|
export default
|
||||||
@connect(mapStateToProps, mapDispatchToProps)
|
@connect(mapStateToProps, mapDispatchToProps)
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class ModalBase extends PureComponent {
|
class ModalBase extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
children: PropTypes.node,
|
children: PropTypes.node,
|
||||||
|
@ -167,7 +167,7 @@ class ModalBase extends PureComponent {
|
||||||
<div ref={this.setRef} className={containerClasses}>
|
<div ref={this.setRef} className={containerClasses}>
|
||||||
{
|
{
|
||||||
!!visible &&
|
!!visible &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<div
|
<div
|
||||||
role='presentation'
|
role='presentation'
|
||||||
className={[_s.default, _s.bgBlackOpaque, _s.posFixed, _s.z3, _s.top0, _s.right0, _s.bottom0, _s.left0].join(' ')}
|
className={[_s.default, _s.bgBlackOpaque, _s.posFixed, _s.z3, _s.top0, _s.right0, _s.bottom0, _s.left0].join(' ')}
|
||||||
|
@ -180,7 +180,7 @@ class ModalBase extends PureComponent {
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
import Button from '../button'
|
import Button from '../button'
|
||||||
|
@ -12,7 +13,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class ModalLayout extends PureComponent {
|
class ModalLayout extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { closeModal } from '../../actions/modal'
|
import { closeModal } from '../../actions/modal'
|
||||||
import { cancelReplyCompose } from '../../actions/compose'
|
import { cancelReplyCompose } from '../../actions/compose'
|
||||||
import Bundle from '../../features/ui/util/bundle'
|
import Bundle from '../../features/ui/util/bundle'
|
||||||
|
@ -130,7 +131,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@connect(mapStateToProps, mapDispatchToProps)
|
@connect(mapStateToProps, mapDispatchToProps)
|
||||||
class ModalRoot extends PureComponent {
|
class ModalRoot extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
type: PropTypes.string,
|
type: PropTypes.string,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import { makeGetAccount } from '../../selectors'
|
import { makeGetAccount } from '../../selectors'
|
||||||
import { muteAccount } from '../../actions/accounts'
|
import { muteAccount } from '../../actions/accounts'
|
||||||
|
@ -26,7 +27,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||||
export default
|
export default
|
||||||
@connect(mapStateToProps, mapDispatchToProps)
|
@connect(mapStateToProps, mapDispatchToProps)
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class MuteModal extends PureComponent {
|
class MuteModal extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
account: PropTypes.object.isRequired,
|
account: PropTypes.object.isRequired,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import { OrderedSet } from 'immutable'
|
import { OrderedSet } from 'immutable'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ModalLayout from './modal_layout'
|
import ModalLayout from './modal_layout'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import { FormattedMessage } from 'react-intl'
|
import { FormattedMessage } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { openSidebar } from '../actions/sidebar'
|
import { openSidebar } from '../actions/sidebar'
|
||||||
|
@ -233,7 +234,7 @@ class NavigationBar extends ImmutablePureComponent {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class NavigationBarButtonDivider extends PureComponent {
|
class NavigationBarButtonDivider extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
import React from 'react'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
import Button from './button'
|
import Button from './button'
|
||||||
import Icon from './icon'
|
import Icon from './icon'
|
||||||
import Text from './text'
|
import Text from './text'
|
||||||
|
|
||||||
export default class NavigationBarButton extends PureComponent {
|
export default class NavigationBarButton extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import { NavLink } from 'react-router-dom'
|
import { NavLink } from 'react-router-dom'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
|
@ -103,14 +103,14 @@ class Notification extends ImmutablePureComponent {
|
||||||
|
|
||||||
if (isHidden) {
|
if (isHidden) {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
{
|
{
|
||||||
accounts && accounts.slice(0, 1).map((account, i) => (
|
accounts && accounts.slice(0, 1).map((account, i) => (
|
||||||
<DisplayName key={i} account={account} noUsername />
|
<DisplayName key={i} account={account} noUsername />
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
{message}
|
{message}
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,12 +164,12 @@ class Notification extends ImmutablePureComponent {
|
||||||
</Text>
|
</Text>
|
||||||
{
|
{
|
||||||
!!createdAt &&
|
!!createdAt &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<DotTextSeperator />
|
<DotTextSeperator />
|
||||||
<Text size='small' color='tertiary' className={_s.ml5}>
|
<Text size='small' color='tertiary' className={_s.ml5}>
|
||||||
<RelativeTimestamp timestamp={createdAt} />
|
<RelativeTimestamp timestamp={createdAt} />
|
||||||
</Text>
|
</Text>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { CX } from '../constants'
|
import { CX } from '../constants'
|
||||||
|
|
||||||
const COLORS = {
|
const COLORS = {
|
||||||
|
@ -5,7 +6,7 @@ const COLORS = {
|
||||||
brand: 'brand',
|
brand: 'brand',
|
||||||
}
|
}
|
||||||
|
|
||||||
class Pagination extends PureComponent {
|
class Pagination extends React.PureComponent {
|
||||||
|
|
||||||
handleClickIndex = (i) => {
|
handleClickIndex = (i) => {
|
||||||
this.props.onClick(i)
|
this.props.onClick(i)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Fragment } from 'react'
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
@ -72,7 +72,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||||
<div className={[_s.default].join(' ')}>
|
<div className={[_s.default].join(' ')}>
|
||||||
{
|
{
|
||||||
!!group &&
|
!!group &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<Heading isCentered>
|
<Heading isCentered>
|
||||||
{group.get('title')}
|
{group.get('title')}
|
||||||
</Heading>
|
</Heading>
|
||||||
|
@ -103,7 +103,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||||
{intl.formatMessage(messages.members)}
|
{intl.formatMessage(messages.members)}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -113,7 +113,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||||
<PanelLayout title={intl.formatMessage(messages.title)}>
|
<PanelLayout title={intl.formatMessage(messages.title)}>
|
||||||
{
|
{
|
||||||
!!group &&
|
!!group &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
|
|
||||||
<Text className={_s.mb5}>
|
<Text className={_s.mb5}>
|
||||||
{group.get('description')}
|
{group.get('description')}
|
||||||
|
@ -185,7 +185,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||||
|
|
||||||
{
|
{
|
||||||
!!tags &&
|
!!tags &&
|
||||||
<Fragment>
|
<React.Fragment>
|
||||||
<Divider isSmall />
|
<Divider isSmall />
|
||||||
<GroupInfoPanelRow title={intl.formatMessage(messages.tags)} icon='shop'>
|
<GroupInfoPanelRow title={intl.formatMessage(messages.tags)} icon='shop'>
|
||||||
<div className={[_s.default, _s.flexRow, _s.justifyContentEnd, _s.flexWrap, _s.pl5].join(' ')}>
|
<div className={[_s.default, _s.flexRow, _s.justifyContentEnd, _s.flexWrap, _s.pl5].join(' ')}>
|
||||||
|
@ -200,17 +200,17 @@ class GroupInfoPanel extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</GroupInfoPanelRow>
|
</GroupInfoPanelRow>
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
|
|
||||||
</Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
</PanelLayout>
|
</PanelLayout>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class GroupInfoPanelRow extends PureComponent {
|
class GroupInfoPanelRow extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
icon: PropTypes.string,
|
icon: PropTypes.string,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'
|
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
import React from 'react'
|
||||||
import Block from '../block'
|
import Block from '../block'
|
||||||
import Heading from '../heading'
|
import Heading from '../heading'
|
||||||
import Button from '../button'
|
import Button from '../button'
|
||||||
import Text from '../text'
|
import Text from '../text'
|
||||||
|
|
||||||
export default class PanelLayout extends PureComponent {
|
export default class PanelLayout extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import React from 'react'
|
||||||
import { injectIntl, defineMessages } from 'react-intl'
|
import { injectIntl, defineMessages } from 'react-intl'
|
||||||
import { URL_GAB_PRO } from '../../constants'
|
import { URL_GAB_PRO } from '../../constants'
|
||||||
import PanelLayout from './panel_layout';
|
import PanelLayout from './panel_layout';
|
||||||
|
@ -12,7 +13,7 @@ const messages = defineMessages({
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@injectIntl
|
@injectIntl
|
||||||
class ProPanel extends PureComponent {
|
class ProPanel extends React.PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
intl: PropTypes.object.isRequired,
|
intl: PropTypes.object.isRequired,
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue