You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import Menu from 'Components/Menu/Menu';
|
|
import MenuContent from 'Components/Menu/MenuContent';
|
|
import SearchMenuItem from 'Components/Menu/SearchMenuItem';
|
|
import ToolbarMenuButton from 'Components/Menu/ToolbarMenuButton';
|
|
import { align, icons } from 'Helpers/Props';
|
|
|
|
class MovieIndexSearchMenu extends Component {
|
|
|
|
render() {
|
|
const {
|
|
isDisabled,
|
|
onSearchPress
|
|
} = this.props;
|
|
|
|
return (
|
|
<Menu
|
|
isDisabled={isDisabled}
|
|
alignMenu={align.RIGHT}
|
|
>
|
|
<ToolbarMenuButton
|
|
iconName={icons.SEARCH}
|
|
text="Search"
|
|
isDisabled={isDisabled}
|
|
/>
|
|
<MenuContent>
|
|
<SearchMenuItem
|
|
name="missingMoviesSearch"
|
|
onPress={onSearchPress}
|
|
>
|
|
Search Missing
|
|
</SearchMenuItem>
|
|
|
|
<SearchMenuItem
|
|
name="cutoffUnmetMoviesSearch"
|
|
onPress={onSearchPress}
|
|
>
|
|
Search Cutoff Unmet
|
|
</SearchMenuItem>
|
|
</MenuContent>
|
|
</Menu>
|
|
);
|
|
}
|
|
}
|
|
|
|
MovieIndexSearchMenu.propTypes = {
|
|
isDisabled: PropTypes.bool.isRequired,
|
|
onSearchPress: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default MovieIndexSearchMenu;
|