Skip to content

Commit

Permalink
removed FEATURED COLLECTION from Browse page
Browse files Browse the repository at this point in the history
  • Loading branch information
okeino committed Oct 9, 2023
1 parent e50cdc4 commit 418a776
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 deletions.
6 changes: 0 additions & 6 deletions public/compiled-lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1341,12 +1341,6 @@
"value": "Conferences"
}
],
"discoverCollections_featuredCollectionHeading": [
{
"type": 0,
"value": "Featured Collection"
}
],
"discoverCollections_storySeasonsHeading": [
{
"type": 0,
Expand Down
3 changes: 0 additions & 3 deletions public/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,6 @@
"discoverCollections_conferencesHeading": {
"string": "Conferences"
},
"discoverCollections_featuredCollectionHeading": {
"string": "Featured Collection"
},
"discoverCollections_storySeasonsHeading": {
"string": "Stories"
},
Expand Down
24 changes: 1 addition & 23 deletions src/containers/discover/collections.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import { FormattedMessage } from 'react-intl';

import LineHeading from '~components/atoms/lineHeading';
import CardFavoriteEntity from '~components/molecules/card/favoriteEntity';
import Audiobooks from '~src/components/organisms/cardSlider/section/audiobooks';
import Conferences from '~src/components/organisms/cardSlider/section/conferences';
import Presenters from '~src/components/organisms/cardSlider/section/presenters';
Expand All @@ -13,32 +11,12 @@ import StorySeasons from '~src/components/organisms/cardSlider/section/storySeas
import Topics from '~src/components/organisms/cardSlider/section/topics';

import { GetDiscoverCollectionsPageDataQuery } from './__generated__/collections';
import styles from './collections.module.scss';

export type IDiscoverCollectionsProps = GetDiscoverCollectionsPageDataQuery;

export default function DiscoverCollections({
websiteFeaturedCollection,
}: IDiscoverCollectionsProps): JSX.Element {
export default function DiscoverCollections(): JSX.Element {
return (
<div>
{websiteFeaturedCollection && (
<>
<LineHeading variant="overline">
<FormattedMessage
id="discoverCollections_featuredCollectionHeading"
defaultMessage="Featured Collection"
/>
</LineHeading>
<div className={styles.featured}>
<CardFavoriteEntity
entity={websiteFeaturedCollection}
disableSequenceStack
/>
</div>
</>
)}

<Presenters />
<Topics />
<Audiobooks />
Expand Down

0 comments on commit 418a776

Please sign in to comment.