-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove FluidPageWrapper.tsx and Wide cards
- Loading branch information
Showing
72 changed files
with
1,551 additions
and
413 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { PropsWithChildren, ReactNode } from 'react'; | ||
import { Box, Divider, Typography } from '@mui/material'; | ||
import { styled } from '@mui/material/styles'; | ||
|
||
const StyledWrapper = styled(Box)` | ||
width: 100%; | ||
margin-block: ${({ theme }) => theme.spacing(2)}; | ||
`; | ||
|
||
interface Props { | ||
title: ReactNode; | ||
icon?: ReactNode; | ||
divider?: boolean; | ||
} | ||
|
||
const Section = ({ | ||
title, | ||
icon, | ||
divider, | ||
children, | ||
}: PropsWithChildren<Props>) => ( | ||
<StyledWrapper> | ||
<Box sx={{ display: 'flex', alignItems: 'center' }}> | ||
{icon && ( | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
mr: 0.5, | ||
color: ({ palette }) => palette.primary.main, | ||
}} | ||
> | ||
{icon} | ||
</Box> | ||
)} | ||
<Typography variant="h5">{title}</Typography> | ||
</Box> | ||
{divider && <Divider sx={{ my: 1 }} />} | ||
{children} | ||
</StyledWrapper> | ||
); | ||
|
||
export default Section; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
src/features/home/features/upcoming/components/UpcomingEpisodesCollection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/features/home/features/upcoming/components/UpcomingSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/features/home/features/upnext/components/UpsertUpNextEpisodeAction.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { useCallback, useContext } from 'react'; | ||
import { UpNextContext } from '../contexts/UpNextContext'; | ||
import UpsertEpisodeAction from '../../../../shows/features/episode/components/UpsertEpisodeAction'; | ||
import { EpisodeActionProps } from '../../../../shows/features/episode/types'; | ||
|
||
const UpsertUpNextEpisodeAction = ({ | ||
episodeId, | ||
isWatched, | ||
}: EpisodeActionProps) => { | ||
const { watchEpisode } = useContext(UpNextContext); | ||
const onWatchEpisode = useCallback(() => { | ||
watchEpisode(episodeId); | ||
}, [episodeId, watchEpisode]); | ||
|
||
return <UpsertEpisodeAction isWatched={isWatched} onClick={onWatchEpisode} />; | ||
}; | ||
|
||
export default UpsertUpNextEpisodeAction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.