Skip to content

Commit

Permalink
(PC-31966) fix(Artist): remove lorem ipsum bio (#6911)
Browse files Browse the repository at this point in the history
  • Loading branch information
yleclercq-pass authored Sep 20, 2024
1 parent a331434 commit b04ceba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 5 additions & 3 deletions src/features/artist/components/ArtistBody/ArtistBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ export const ArtistBody: FunctionComponent<Props> = ({ offer, artist, subcategor
<ArtistHeader name={name} />
<Description gap={1}>
<Typo.ButtonText>Quelques infos à son sujet</Typo.ButtonText>
<CollapsibleText numberOfLines={NUMBER_OF_LINES_OF_DESCRIPTION_SECTION}>
{bio}
</CollapsibleText>
{bio ? (
<CollapsibleText numberOfLines={NUMBER_OF_LINES_OF_DESCRIPTION_SECTION}>
{bio}
</CollapsibleText>
) : null}
</Description>
</ViewGap>
<ArtistPlaylist offer={offer} subcategory={subcategory} artistName={name} />
Expand Down
9 changes: 2 additions & 7 deletions src/features/artist/pages/Artist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ import { useSubcategoriesMapping } from 'libs/subcategories'

export type Artist = {
name: string
bio: string
bio?: string
}

// To remove when description is going to be provided
const textTest = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam accumsan sodales metus efficitur accumsan. Etiam aliquam lorem scelerisque volutpat dapibus. Nam sollicitudin quam a turpis mattis gravida ut at dolor. Sed leo lorem, vulputate vitae nulla elementum, ultricies varius velit. Curabitur felis lorem, hendrerit vitae purus aliquam, euismod dictum nisl. Nam vel gravida libero, non maximus nibh. In hac habitasse platea dictumst. Morbi ut magna vel elit dapibus sollicitudin et eu orci. Quisque commodo bibendum risus, nec aliquam dolor consequat vel. Nam quam nulla, pretium non vestibulum nec, convallis et elit.
Curabitur consectetur sapien et convallis fringilla. Suspendisse consequat nec sem non convallis. Aliquam pulvinar mi vitae felis commodo, eget ornare nulla lacinia. Fusce ultricies nibh dui, eget tempus orci placerat eu. Nam pulvinar metus quis purus semper, eu hendrerit justo consequat. Suspendisse potenti. Proin in elementum risus, nec porttitor purus. Vestibulum sodales, turpis eget feugiat maximus, purus nisl laoreet est, euismod pulvinar tellus elit quis enim. Mauris id scelerisque orci. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac interdum leo. Fusce non est nisi. Nam imperdiet in sem eu semper.`

export const Artist: FunctionComponent = () => {
const enableArtistPage = useFeatureFlag(RemoteStoreFeatureFlags.WIP_ARTIST_PAGE)
const { params } = useRoute<UseRouteType<'Artist'>>()
Expand All @@ -35,7 +30,7 @@ export const Artist: FunctionComponent = () => {

const artistInfo: Artist = {
name: artists,
bio: textTest,
bio: undefined,
}

return enableArtistPage ? (
Expand Down

0 comments on commit b04ceba

Please sign in to comment.