-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
260 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface CollectionFeaturedItem { | ||
title: string | ||
description: string | ||
image?: { | ||
url: string | ||
altText: string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/collection/domain/useCases/getCollectionFeaturedItems.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CollectionFeaturedItem } from '../models/CollectionFeaturedItem' | ||
import { CollectionRepository } from '../repositories/CollectionRepository' | ||
|
||
export async function getCollectionFeaturedItems( | ||
collectionRepository: CollectionRepository, | ||
collectionIdOrAlias: number | string | ||
): Promise<CollectionFeaturedItem[]> { | ||
return collectionRepository.getFeaturedItems(collectionIdOrAlias).catch((error: Error) => { | ||
throw new Error(error.message) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 0 additions & 97 deletions
97
src/sections/collection/collection-info/CollectionInfo2.module.scss
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
src/sections/collection/collection-info/CollectionInfo2.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.