added book details, update, delete. fixes
This commit is contained in:
parent
d1da980501
commit
b5738c610d
12 changed files with 290 additions and 16 deletions
|
|
@ -32,10 +32,14 @@ function RouteComponent() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<BookOverviewTabs bookId={id} currentTab="contents" />
|
||||
|
||||
{data != null ? (
|
||||
<>
|
||||
<BookOverviewTabs
|
||||
isAuthor={data?.bookOne.author.id === identity?.data.id}
|
||||
bookId={id}
|
||||
currentTab="contents"
|
||||
/>
|
||||
|
||||
<BookChapterList
|
||||
id={data.bookOne.id}
|
||||
isAuthor={identity?.data.id === data.bookOne.author.id}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue