Cleanup Calendar custom filters
This commit is contained in:
parent
11f96c3104
commit
fd789343b5
|
@ -1,9 +1,10 @@
|
|||
import AppSectionState from 'App/State/AppSectionState';
|
||||
import AppSectionState, {
|
||||
AppSectionFilterState,
|
||||
} from 'App/State/AppSectionState';
|
||||
import Episode from 'Episode/Episode';
|
||||
import { FilterBuilderProp } from './AppState';
|
||||
|
||||
interface CalendarAppState extends AppSectionState<Episode> {
|
||||
filterBuilderProps: FilterBuilderProp<Episode>[];
|
||||
}
|
||||
interface CalendarAppState
|
||||
extends AppSectionState<Episode>,
|
||||
AppSectionFilterState<Episode> {}
|
||||
|
||||
export default CalendarAppState;
|
||||
|
|
|
@ -23,13 +23,11 @@ function createFilterBuilderPropsSelector() {
|
|||
);
|
||||
}
|
||||
|
||||
interface SeriesIndexFilterModalProps {
|
||||
interface CalendarFilterModalProps {
|
||||
isOpen: boolean;
|
||||
}
|
||||
|
||||
export default function CalendarFilterModal(
|
||||
props: SeriesIndexFilterModalProps
|
||||
) {
|
||||
export default function CalendarFilterModal(props: CalendarFilterModalProps) {
|
||||
const sectionItems = useSelector(createCalendarSelector());
|
||||
const filterBuilderProps = useSelector(createFilterBuilderPropsSelector());
|
||||
const customFilterType = 'calendar';
|
||||
|
|
Loading…
Reference in New Issue