Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
markdavella committed Mar 8, 2024
1 parent 5e0e04f commit 041e977
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions web/src/pages/welcome/WelcomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ import { ArrowBack, CheckBox, CheckBoxOutlineBlank } from '@mui/icons-material';
import { Box, Button, Stack, Typography } from '@mui/material';
import dayjs from 'dayjs';
import React, { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import PaddedPaper from '../../components/base/PaddedPaper.tsx';
import ConnectPlex from '../../components/settings/ConnectPlex.tsx';
import { usePlexServerSettings } from '../../hooks/settingsHooks.ts';
import { useChannels } from '../../hooks/useChannels.ts';
import { useAllTvGuides } from '../../hooks/useTvGuide.ts';
import { useVersion } from '../../hooks/useVersion.ts';
import useStore from '../../store/index.ts';
import {
resetPathwayState,
updatePathwayState,
} from '../../store/themeEditor/actions.ts';
import { resetPathwayState } from '../../store/themeEditor/actions.ts';

export default function WelcomePage() {
const [isPlexConnected, setIsPlexConnected] = React.useState<boolean>(false);
Expand All @@ -32,7 +28,7 @@ export default function WelcomePage() {
from: startDate,
to: endDate,
});
const navigate = useNavigate();
// const navigate = useNavigate();
const pathway = useStore((state) => state.theme.pathway);

useEffect(() => {
Expand All @@ -53,13 +49,13 @@ export default function WelcomePage() {
}
}, [plexServers, channels, programming]);

const handlePathway = (pathway: string) => {
updatePathwayState(pathway);
// const handlePathway = (pathway: string) => {
// updatePathwayState(pathway);

if (pathway === 'advanced') {
navigate('/guide');
}
};
// if (pathway === 'advanced') {
// navigate('/guide');
// }
// };

const header = (
<>
Expand Down

0 comments on commit 041e977

Please sign in to comment.