diff --git a/src/components/EntryPointsTabs.tsx b/src/components/EntryPointsTabs.tsx index 5d5bd7ac6..ef42d0a0c 100644 --- a/src/components/EntryPointsTabs.tsx +++ b/src/components/EntryPointsTabs.tsx @@ -14,7 +14,10 @@ export interface EntryPointsTabsProps { } /** This component renders a library's entrypoints as linked tabs. */ -export class EntryPointsTabs extends React.Component { +export class EntryPointsTabs extends React.Component< + EntryPointsTabsProps, + Record +> { context: EntryPointsTabsContext; constructor(props) { @@ -34,7 +37,7 @@ export class EntryPointsTabs extends React.Component { const mapEntryPointsToSchema = { All: "http://schema.org/CreativeWork", - eBooks: "http://schema.org/EBook", + Ebooks: "http://schema.org/EBook", Audiobooks: "http://bib.schema.org/Audiobook", }; const svgMediumTypes = { diff --git a/src/components/__tests__/EntryPointsContainer-test.tsx b/src/components/__tests__/EntryPointsContainer-test.tsx index 4afc22144..c3fa44ec2 100644 --- a/src/components/__tests__/EntryPointsContainer-test.tsx +++ b/src/components/__tests__/EntryPointsContainer-test.tsx @@ -55,7 +55,7 @@ describe("EntryPointsContainer", () => { { facets: [ { - label: "eBooks", + label: "Ebooks", href: "http://circulation.librarysimplified.org/groups/?entrypoint=Book", active: false, diff --git a/src/components/__tests__/EntryPointsTabs-test.tsx b/src/components/__tests__/EntryPointsTabs-test.tsx index 026fe2da8..058dd9107 100644 --- a/src/components/__tests__/EntryPointsTabs-test.tsx +++ b/src/components/__tests__/EntryPointsTabs-test.tsx @@ -14,7 +14,7 @@ describe("EntryPointsTabs", () => { let push; let facets = [ { - label: "eBooks", + label: "Ebooks", href: "http://circulation.librarysimplified.org/groups/?entrypoint=Book", active: true, }, @@ -51,7 +51,7 @@ describe("EntryPointsTabs", () => { const bookLink = catalogLinks.at(0); const audioLink = catalogLinks.at(1); - expect(bookLink.children().at(1).text()).to.equal("eBooks"); + expect(bookLink.children().at(1).text()).to.equal("Ebooks"); expect(audioLink.children().at(1).text()).to.equal("Audiobooks"); }); @@ -62,7 +62,7 @@ describe("EntryPointsTabs", () => { const ebookLink = links.at(0); const audioBookLink = links.at(1); - expect(ebookLink.children().at(1).text()).to.equal("eBooks"); + expect(ebookLink.children().at(1).text()).to.equal("Ebooks"); expect(audioBookLink.children().at(1).text()).to.equal("Audiobooks"); });