Fixed: Remove useless Banners view

This commit is contained in:
ta264
2021-06-07 20:17:40 +01:00
parent 977c4e653b
commit 2ca55ae729
12 changed files with 0 additions and 1142 deletions
-33
View File
@@ -16,8 +16,6 @@ import getErrorMessage from 'Utilities/Object/getErrorMessage';
import hasDifferentItemsOrOrder from 'Utilities/Object/hasDifferentItemsOrOrder';
import translate from 'Utilities/String/translate';
import AuthorIndexFooterConnector from './AuthorIndexFooterConnector';
import AuthorIndexBannersConnector from './Banners/AuthorIndexBannersConnector';
import AuthorIndexBannerOptionsModal from './Banners/Options/AuthorIndexBannerOptionsModal';
import AuthorIndexFilterMenu from './Menus/AuthorIndexFilterMenu';
import AuthorIndexSortMenu from './Menus/AuthorIndexSortMenu';
import AuthorIndexViewMenu from './Menus/AuthorIndexViewMenu';
@@ -34,10 +32,6 @@ function getViewComponent(view) {
return AuthorIndexPostersConnector;
}
if (view === 'banners') {
return AuthorIndexBannersConnector;
}
if (view === 'overview') {
return AuthorIndexOverviewsConnector;
}
@@ -58,7 +52,6 @@ class AuthorIndex extends Component {
jumpBarItems: { order: [] },
jumpToCharacter: null,
isPosterOptionsModalOpen: false,
isBannerOptionsModalOpen: false,
isOverviewOptionsModalOpen: false
};
}
@@ -148,14 +141,6 @@ class AuthorIndex extends Component {
this.setState({ isPosterOptionsModalOpen: false });
}
onBannerOptionsPress = () => {
this.setState({ isBannerOptionsModalOpen: true });
}
onBannerOptionsModalClose = () => {
this.setState({ isBannerOptionsModalOpen: false });
}
onOverviewOptionsPress = () => {
this.setState({ isOverviewOptionsModalOpen: true });
}
@@ -201,7 +186,6 @@ class AuthorIndex extends Component {
jumpBarItems,
jumpToCharacter,
isPosterOptionsModalOpen,
isBannerOptionsModalOpen,
isOverviewOptionsModalOpen
} = this.state;
@@ -261,17 +245,6 @@ class AuthorIndex extends Component {
null
}
{
view === 'banners' ?
<PageToolbarButton
label={translate('Options')}
iconName={icons.POSTER}
isDisabled={hasNoAuthor}
onPress={this.onBannerOptionsPress}
/> :
null
}
{
view === 'overview' ?
<PageToolbarButton
@@ -364,12 +337,6 @@ class AuthorIndex extends Component {
onModalClose={this.onPosterOptionsModalClose}
/>
<AuthorIndexBannerOptionsModal
isOpen={isBannerOptionsModalOpen}
onModalClose={this.onBannerOptionsModalClose}
/>
<AuthorIndexOverviewOptionsModal
isOpen={isOverviewOptionsModalOpen}
onModalClose={this.onOverviewOptionsModalClose}