|
|
@ -2,6 +2,7 @@ |
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import PropTypes from 'prop-types'; |
|
|
|
import React from 'react'; |
|
|
|
import React from 'react'; |
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
|
import ImmutablePropTypes from 'react-immutable-proptypes'; |
|
|
|
|
|
|
|
import classNames from 'classnames'; |
|
|
|
|
|
|
|
|
|
|
|
// Actions.
|
|
|
|
// Actions.
|
|
|
|
import { openModal } from 'flavours/glitch/actions/modal'; |
|
|
|
import { openModal } from 'flavours/glitch/actions/modal'; |
|
|
@ -68,6 +69,12 @@ class Drawer extends React.Component { |
|
|
|
submitted, |
|
|
|
submitted, |
|
|
|
} = this.props; |
|
|
|
} = this.props; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let choices = ['mbstobon-bg-1', 'mbstobon-bg-2', 'mbstobon-bg-3']; |
|
|
|
|
|
|
|
let glitchyFriendDecision = choices[Math.floor(Math.random() * choices.length)]; |
|
|
|
|
|
|
|
let drawerAttrs = { |
|
|
|
|
|
|
|
className: classNames('contents', glitchyFriendDecision) |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// The result.
|
|
|
|
// The result.
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className='drawer'> |
|
|
|
<div className='drawer'> |
|
|
@ -87,7 +94,7 @@ class Drawer extends React.Component { |
|
|
|
submitted={submitted} |
|
|
|
submitted={submitted} |
|
|
|
value={searchValue} |
|
|
|
value={searchValue} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div className='contents'> |
|
|
|
<div {...drawerAttrs}> |
|
|
|
<DrawerAccount account={account} /> |
|
|
|
<DrawerAccount account={account} /> |
|
|
|
<Composer /> |
|
|
|
<Composer /> |
|
|
|
<DrawerResults |
|
|
|
<DrawerResults |
|
|
|