-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated book detail page for course and series links, search adjustme…
…nts and fixes
- Loading branch information
Showing
28 changed files
with
677 additions
and
1,726 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
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
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
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
21 changes: 3 additions & 18 deletions
21
src/components/views/shared-tags/shared-tags-card-view.tsx
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 |
---|---|---|
@@ -1,22 +1,7 @@ | ||
import CardViewGrid from "@components/views/card-view-grid" | ||
import {NodeUnion} from "@lib/gql/__generated__/drupal.d" | ||
import {ViewDisplayProps} from "@components/views/view" | ||
|
||
interface Props { | ||
/** | ||
* List of node entities. | ||
*/ | ||
items: NodeUnion[] | ||
/** | ||
* If those nodes titles should display as <h2> or <h3> | ||
*/ | ||
headingLevel?: "h2" | "h3" | ||
/** | ||
* Total number of items on all pages. | ||
*/ | ||
totalItems: number | ||
} | ||
|
||
const SharedTagsCardView = async ({items = [], headingLevel, totalItems}: Props) => { | ||
return <CardViewGrid items={items} headingLevel={headingLevel} totalItems={totalItems} /> | ||
const SharedTagsCardView = async (props: ViewDisplayProps) => { | ||
return <CardViewGrid {...props} /> | ||
} | ||
export default SharedTagsCardView |
20 changes: 3 additions & 17 deletions
20
src/components/views/stanford-courses/course-card-view.tsx
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 |
---|---|---|
@@ -1,22 +1,8 @@ | ||
import CardViewGrid from "@components/views/card-view-grid" | ||
import {NodeStanfordCourse} from "@lib/gql/__generated__/drupal.d" | ||
import {ViewDisplayProps} from "@components/views/view" | ||
|
||
interface Props { | ||
/** | ||
* List of nodes to display. | ||
*/ | ||
items: NodeStanfordCourse[] | ||
/** | ||
* If those nodes titles should display as <h2> or <h3> | ||
*/ | ||
headingLevel?: "h2" | "h3" | ||
/** | ||
* Total number of items on all pages. | ||
*/ | ||
totalItems: number | ||
} | ||
|
||
const CourseCardView = async ({items = [], headingLevel, totalItems}: Props) => { | ||
return <CardViewGrid items={items} headingLevel={headingLevel} totalItems={totalItems} /> | ||
const CourseCardView = async (props: ViewDisplayProps<NodeStanfordCourse>) => { | ||
return <CardViewGrid {...props} /> | ||
} | ||
export default CourseCardView |
Oops, something went wrong.