Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
markdavella committed Mar 7, 2024
1 parent 3aca587 commit 6e2e95f
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions web/src/components/channel_config/ProgrammingSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,36 +386,39 @@ export default function ProgrammingSelector() {
</Button>
</ButtonGroup>
</Stack>

<LinearProgress
sx={{ visibility: searchLoading ? 'visible' : 'hidden' }}
/>
<List
component="nav"
sx={{
mt: 2,
width: '100%',
maxHeight: 1200,
overflowY: 'scroll',
display: viewType === 'grid' ? 'flex' : 'block',
flexWrap: 'wrap',
gap: '10px',
justifyContent: 'space-between',
}}
>
renderListItems()
<div style={{ height: 40 }} ref={ref}></div>
</List>

<Divider sx={{ mt: 3, mb: 2 }} />
<Typography>Selected Items</Typography>
<SelectedProgrammingList />
<AddSelectedMediaButton
onAdd={addPlexMediaToCurrentChannel}
onSuccess={() => navigate('..', { relative: 'path' })}
/>
</>
)}
{selectedServer && (
<>
<LinearProgress
sx={{ visibility: searchLoading ? 'visible' : 'hidden' }}
/>
<List
component="nav"
sx={{
mt: 2,
width: '100%',
maxHeight: 1200,
overflowY: 'scroll',
display: viewType === 'grid' ? 'flex' : 'block',
flexWrap: 'wrap',
gap: '10px',
justifyContent: 'space-between',
}}
>
renderListItems()
<div style={{ height: 40 }} ref={ref}></div>
</List>

<Divider sx={{ mt: 3, mb: 2 }} />
<Typography>Selected Items</Typography>
<SelectedProgrammingList />
<AddSelectedMediaButton
onAdd={addPlexMediaToCurrentChannel}
onSuccess={() => navigate('..', { relative: 'path' })}
/>
</>
)}
</>
);
}

0 comments on commit 6e2e95f

Please sign in to comment.