Skip to content

Commit

Permalink
Merge pull request #483 from audioverse-org/AV-616-Remove-FEATURED-CO…
Browse files Browse the repository at this point in the history
…LLECTION-from-Browse-Page-on-website-mobile-browser

removed FEATURED COLLECTION from Browse page
  • Loading branch information
avorg authored Oct 12, 2023
2 parents e50cdc4 + f865518 commit 4a030d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 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
26 changes: 2 additions & 24 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,34 +11,15 @@ 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 />
<Series />
<Audiobooks />
<Conferences
heading={
Expand All @@ -61,7 +40,6 @@ export default function DiscoverCollections({
}
/>
<ScriptureSongs />
<Series />
</div>
);
}

1 comment on commit 4a030d5

@vercel
Copy link

@vercel vercel bot commented on 4a030d5 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.