diff --git a/src/components/Episode/Footer/Episode.RelatedEpisodes.tsx b/src/components/Episode/Footer/Episode.RelatedEpisodes.tsx index 901a312..d73769f 100644 --- a/src/components/Episode/Footer/Episode.RelatedEpisodes.tsx +++ b/src/components/Episode/Footer/Episode.RelatedEpisodes.tsx @@ -1,9 +1,8 @@ +import { LPE } from '@/types/lpe.types' import { Button, Typography } from '@acid-info/lsd-react' import styled from '@emotion/styled' import { useState } from 'react' -import { LPE } from '@/types/lpe.types' -import { PostCard } from '@/components/PostCard' -import { Grid, GridItem } from '@/components/Grid/Grid' +import { PostsGrid } from '../../PostsGrid' type props = { podcastSlug: string @@ -24,18 +23,25 @@ const RelatedEpisodes = ({ podcastSlug, relatedEpisodes }: props) => { return ( More Episodes - - {relatedEpisodes.slice(0, showIndex).map((episode, idx: number) => ( - - - - ))} - + {relatedEpisodes?.length > 4 && ( {showMore ? 'Show less' : 'Show more'} @@ -53,17 +59,9 @@ const Container = styled.div` flex-direction: column; ` -const EpisodeCards = styled(Grid)` - gap: 0 16px; -` - const ShowButton = styled(Button)` height: 40px; margin-top: 24px; ` -const PostCardContainer = styled(GridItem)` - padding-top: 24px; -` - export default RelatedEpisodes