diff --git a/app/views/RoomsListView/ListHeader/Directory.js b/app/views/RoomsListView/ListHeader/Directory.js deleted file mode 100644 index e8ed5f1a..00000000 --- a/app/views/RoomsListView/ListHeader/Directory.js +++ /dev/null @@ -1,44 +0,0 @@ -import React from 'react'; -import { View, Text, StyleSheet } from 'react-native'; -import PropTypes from 'prop-types'; - -import Touch from '../../../utils/touch'; -import { CustomIcon } from '../../../lib/Icons'; -import I18n from '../../../i18n'; -import styles from '../styles'; -import DisclosureIndicator from '../../../containers/DisclosureIndicator'; -import { themes } from '../../../constants/colors'; -import { withTheme } from '../../../theme'; - -const Directory = React.memo(({ goDirectory, theme, searching }) => { - if (searching > 0) { - return null; - } - const color = { color: themes[theme].headerSecondaryText }; - return ( - - - - {I18n.t('Directory')} - - - - ); -}); - -Directory.propTypes = { - searching: PropTypes.bool, - goDirectory: PropTypes.func, - theme: PropTypes.string -}; - -export default withTheme(Directory); diff --git a/app/views/RoomsListView/ListHeader/index.js b/app/views/RoomsListView/ListHeader/index.js index 5df24878..3de54b91 100644 --- a/app/views/RoomsListView/ListHeader/index.js +++ b/app/views/RoomsListView/ListHeader/index.js @@ -2,20 +2,17 @@ import React from 'react'; import PropTypes from 'prop-types'; import Queue from './Queue'; -import Directory from './Directory'; import Sort from './Sort'; const ListHeader = React.memo(({ searching, sortBy, toggleSort, - goDirectory, goQueue, queueSize, inquiryEnabled }) => ( <> - @@ -25,7 +22,6 @@ ListHeader.propTypes = { searching: PropTypes.bool, sortBy: PropTypes.string, toggleSort: PropTypes.func, - goDirectory: PropTypes.func, goQueue: PropTypes.func, queueSize: PropTypes.number, inquiryEnabled: PropTypes.bool diff --git a/app/views/RoomsListView/index.js b/app/views/RoomsListView/index.js index 513ce311..d9f37eba 100644 --- a/app/views/RoomsListView/index.js +++ b/app/views/RoomsListView/index.js @@ -372,6 +372,12 @@ class RoomsListView extends React.Component { onPress={this.initSearching} testID='rooms-list-view-search' /> + )) }; diff --git a/app/views/RoomsListView/styles.js b/app/views/RoomsListView/styles.js index 70f2bb6d..f304518e 100644 --- a/app/views/RoomsListView/styles.js +++ b/app/views/RoomsListView/styles.js @@ -116,15 +116,5 @@ export default StyleSheet.create({ serverSeparator: { height: StyleSheet.hairlineWidth, marginLeft: 72 - }, - directoryIcon: { - width: 22, - height: 22, - marginHorizontal: 12 - }, - directoryText: { - fontSize: 16, - flex: 1, - ...sharedStyles.textRegular } });