Skip to content

Commit

Permalink
Remove circulation links from book details. (#23)
Browse files Browse the repository at this point in the history
* Remove circulation links from book details.

* Update changelog.
  • Loading branch information
ray-lee authored May 10, 2022
1 parent 228af09 commit 31fb540
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

### v0.0.9

#### Updated

- Removed circulation buttons (Borrow, Download, Read) from book details screen.

### v0.0.8

#### Updated
Expand Down
4 changes: 4 additions & 0 deletions src/components/BookDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,8 @@ export default class BookDetails extends DefaultBookDetails<

return distributor.value;
}

circulationLinks() {
return null;
}
}
5 changes: 5 additions & 0 deletions src/components/__tests__/BookDetails-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@ describe("BookDetails", () => {
const distributor = wrapper.find(".distributed-by");
expect(distributor.text()).to.equal("Distributed By: Overdrive");
});

it("doesn't render any circulation link content", () => {
const circulationLinks = wrapper.find(".circulation-links");
expect(circulationLinks.text()).to.equal("");
});
});
3 changes: 1 addition & 2 deletions src/stylesheets/book_details_tab_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
width: 60%;
margin: auto;
.circulation-links {
padding-bottom: 1em;
border-bottom: 1px solid $blue-dark;
margin: 0;
.btn {
color: $blue-dark;
border-color: $blue-dark;
Expand Down

0 comments on commit 31fb540

Please sign in to comment.