Skip to content

Commit

Permalink
disable modal for plex items in guide (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdavella authored Apr 28, 2024
1 parent 573bb35 commit 7199953
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/components/guide/TvGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ import {
} from '@mui/material';
import { ChannelLineup, TvGuideProgram } from '@tunarr/types';
import dayjs, { Dayjs } from 'dayjs';
import { isUndefined, isEmpty, isNull, map, round } from 'lodash-es';
import { isEmpty, isNull, isUndefined, map, round } from 'lodash-es';
import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import { useInterval } from 'usehooks-ts';
import { alternateColors, forTvGuideProgram } from '../../helpers/util';
import { useTvGuides, useTvGuidesPrefetch } from '../../hooks/useTvGuide';
import useStore from '../../store';
import { useSettings } from '../../store/settings/selectors.ts';
import ProgramDetailsDialog from '../ProgramDetailsDialog';
import TunarrLogo from '../TunarrLogo';
import PaddedPaper from '../base/PaddedPaper';
import { useSettings } from '../../store/settings/selectors.ts';

const StyledMenu = styled((props: MenuProps) => (
<Menu
Expand Down Expand Up @@ -159,6 +159,10 @@ export function TvGuide({ channelId, start, end }: Props) {
>();

const handleModalOpen = useCallback((program: TvGuideProgram | undefined) => {
if (program && program.type === 'flex') {
return;
}

setModalProgram(program);
}, []);

Expand Down

0 comments on commit 7199953

Please sign in to comment.