diff options
Diffstat (limited to 'app/javascript/flavours/glitch/features/drawer/pager/index.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/drawer/pager/index.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/app/javascript/flavours/glitch/features/drawer/pager/index.js b/app/javascript/flavours/glitch/features/drawer/pager/index.js deleted file mode 100644 index 8dc2d3ee9..000000000 --- a/app/javascript/flavours/glitch/features/drawer/pager/index.js +++ /dev/null @@ -1,43 +0,0 @@ -// Package imports. -import classNames from 'classnames'; -import PropTypes from 'prop-types'; -import React from 'react'; -import ImmutablePropTypes from 'react-immutable-proptypes'; - -// Components. -import IconButton from 'flavours/glitch/components/icon_button'; -import Composer from 'flavours/glitch/features/composer'; -import DrawerPagerAccount from './account'; - -// The component. -export default function DrawerPager ({ - account, - active, - onClose, - onFocus, -}) { - const computedClass = classNames('drawer--pager', { active }); - - // The result. - return ( - <div - className={computedClass} - onFocus={onFocus} - > - <DrawerPagerAccount account={account} /> - <IconButton - icon='close' - onClick={onClose} - title='' - /> - <Composer /> - </div> - ); -} - -DrawerPager.propTypes = { - account: ImmutablePropTypes.map, - active: PropTypes.bool, - onClose: PropTypes.func, - onFocus: PropTypes.func, -}; |