Skip to content

Commit

Permalink
feat: 提供中のブックでは提供しているリンクを表示しない
Browse files Browse the repository at this point in the history
  • Loading branch information
knokmki612 committed Jun 28, 2021
1 parent e982054 commit 633f2af
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions components/templates/Books.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ const useStyles = makeStyles((theme) => ({
title: {
marginBottom: theme.spacing(2),
},
linkedBook: {
// NOTE: BookPreviewに依存する&事前に高さを確定できないので決め打ち
minHeight: 255,
},
linkedBookPlaceholder: {
// NOTE: BookPreviewに依存する&事前に高さを確定できないので決め打ち
minHeight: 205,
height: 180,
display: "flex",
alignItems: "center",
justifyContent: "center",
Expand Down Expand Up @@ -100,13 +96,13 @@ export default function Books(props: Props) {
</>
}
body={
<div className={classes.linkedBook}>
<div>
<Typography className={classes.title} variant="h5">
提供中のブック
</Typography>
{linkedBook && (
<BookPreview
book={linkedBook}
book={{ ...linkedBook, ltiResourceLinks: [] }}
linked
onBookPreviewClick={onBookPreviewClick}
onBookEditClick={
Expand Down

0 comments on commit 633f2af

Please sign in to comment.