Skip to content

Commit

Permalink
lint: fix missing props
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Oct 10, 2024
1 parent 6c099ae commit ad22674
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export class CollectionJSDataverseRepository implements CollectionRepository {
resolve([
{
title: 'Featured item 1',
description:
content:
'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Aut alias eos expedita quae quisquam ea nemo neque incidunt amet. Odit quos libero aliquam labore dicta eaque dolorum, consequuntur itaque corrupti, reiciendis quas ab. Voluptatem alias, quam, aliquid excepturi repudiandae ab ex pariatur, est id perspiciatis porro impedit adipisci beatae ipsam.'
},
{
title: 'Featured item 2',
description:
content:
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem assumenda nam repellendus adipisci doloremque fugit maiores. Repudiandae sequi illo eum quod id quisquam vero enim ipsa distinctio, quia, consequatur harum dolor non voluptatibus ipsum, rem vel quo voluptates magni eveniet velit hic! Repellendus, provident? Dolore maxime ullam ut est, delectus itaque beatae alias corporis doloremque architecto magni officiis tenetur reprehenderit.',
image: {
url: 'https://via.placeholder.com/150x80',
Expand All @@ -81,7 +81,7 @@ export class CollectionJSDataverseRepository implements CollectionRepository {
},
{
title: 'Featured item 3',
description:
content:
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem assumenda nam repellendus adipisci doloremque fugit maiores. Repudiandae sequi illo eum quod id quisquam vero enim ipsa distinctio, quia, consequatur harum dolor non voluptatibus ipsum, rem vel quo voluptates magni eveniet velit hic! Repellendus, provident? Dolore maxime ullam ut est, delectus itaque beatae alias corporis doloremque architecto magni officiis tenetur reprehenderit.',
image: {
url: 'https://via.placeholder.com/400x400',
Expand All @@ -90,7 +90,7 @@ export class CollectionJSDataverseRepository implements CollectionRepository {
},
{
title: 'Featured item 4',
description:
content:
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Autem assumenda nam repellendus adipisci doloremque fugit maiores. Repudiandae sequi illo eum quod id quisquam vero enim ipsa distinctio, quia, consequatur harum dolor non voluptatibus ipsum, rem vel quo voluptates magni eveniet velit hic! Repellendus, provident? Dolore maxime ullam ut est, delectus itaque beatae alias corporis doloremque architecto magni officiis tenetur reprehenderit.',
image: {
url: 'https://via.placeholder.com/800x400',
Expand All @@ -99,7 +99,7 @@ export class CollectionJSDataverseRepository implements CollectionRepository {
},
{
title: 'Featured item 5',
description:
content:
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Facere enim alias quibusdam debitis quaerat, consectetur velit aliquid ipsum! Iusto obcaecati quibusdam hic nam voluptate. Consequuntur laborum officia aliquid recusandae ut, numquam sequi explicabo voluptatum reprehenderit, minima nulla repudiandae at magni fugit quis. Numquam architecto voluptas repudiandae vel totam officia ut? Nobis ex natus optio. Laborum veniam inventore suscipit architecto consectetur minima commodi dolore ducimus ipsam sint vitae doloremque, dolorem ullam! Iusto corporis commodi, pariatur vel magni, dolorum vero non, exercitationem cumque in deserunt? Iste quia dolor aut ullam dolorem eum quidem id accusamus officiis dolore. Quia placeat sapiente aperiam vero distinctio quidem, fugiat recusandae quisquam saepe ut, nesciunt laborum. Aspernatur ea, quasi, facilis impedit optio repellendus quo dolorum velit officia nihil mollitia provident commodi, delectus vero sint porro modi dolores? Ipsam doloribus impedit iure nemo architecto minima explicabo, eligendi dolorem voluptatem sequi aperiam, quisquam placeat ullam facere ut, minus at sit inventore enim eveniet cum. Repellendus eius quam architecto vel cum quod, tenetur neque deserunt, hic a perferendis adipisci fuga quibusdam dignissimos accusantium autem. Quisquam, ipsum harum fugit voluptatum aperiam minus corrupti hic qui impedit eveniet facere ut iure omnis error dicta nobis eum. Repellendus quia, laboriosam laudantium voluptates expedita fuga nulla? Quia nobis labore possimus debitis temporibus minus neque molestiae quam! Repellat reiciendis culpa similique odit doloribus quas praesentium quasi. Voluptatem amet iusto dolore, id, ut eligendi soluta assumenda excepturi perferendis, reiciendis odit explicabo ipsam maiores. Aut corporis eveniet quia repudiandae dolorem nam, excepturi ipsam veniam amet perferendis ullam eaque suscipit unde consequuntur asperiores maiores vel. Adipisci, asperiores. Iure quasi natus repudiandae quod, placeat blanditiis earum tenetur at dolores? Laudantium nam aperiam architecto consequatur, quos molestiae, amet sit itaque debitis neque quo? Iste repellendus vero illo deleniti eum impedit perferendis odit earum, iusto in porro id itaque quasi voluptate.'
}
])
Expand Down
16 changes: 11 additions & 5 deletions src/stories/collection/CollectionInfo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,26 @@ export default meta
type Story = StoryObj<typeof CollectionInfo>

export const Default: Story = {
render: () => <CollectionInfo collection={CollectionMother.createWithOnlyRequiredFields()} />
render: () => (
<CollectionInfo collection={CollectionMother.createWithOnlyRequiredFields()} showDescription />
)
}

export const Complete: Story = {
render: () => <CollectionInfo collection={CollectionMother.createComplete()} />
render: () => <CollectionInfo collection={CollectionMother.createComplete()} showDescription />
}

export const WithAffiliation: Story = {
render: () => <CollectionInfo collection={CollectionMother.createWithAffiliation()} />
render: () => (
<CollectionInfo collection={CollectionMother.createWithAffiliation()} showDescription />
)
}

export const Unpublished: Story = {
render: () => <CollectionInfo collection={CollectionMother.createUnpublished()} />
render: () => <CollectionInfo collection={CollectionMother.createUnpublished()} showDescription />
}
export const WithDescription: Story = {
render: () => <CollectionInfo collection={CollectionMother.createWithDescription()} />
render: () => (
<CollectionInfo collection={CollectionMother.createWithDescription()} showDescription />
)
}

0 comments on commit ad22674

Please sign in to comment.