implemented ratings, fixes
This commit is contained in:
parent
4801cf3a13
commit
d1da980501
31 changed files with 775 additions and 236 deletions
23
app/client/components/BookOverviewTabs.tsx
Normal file
23
app/client/components/BookOverviewTabs.tsx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { Tabs } from '@chakra-ui/react';
|
||||
import { Link } from '@tanstack/react-router';
|
||||
|
||||
export function BookOverviewTabs({
|
||||
bookId,
|
||||
currentTab
|
||||
}: {
|
||||
readonly bookId: string;
|
||||
readonly currentTab: 'contents' | 'reviews';
|
||||
}) {
|
||||
return (
|
||||
<Tabs.Root defaultValue="members" value={currentTab}>
|
||||
<Tabs.List>
|
||||
<Link to={`/work/book/${bookId}/overview/contents`}>
|
||||
<Tabs.Trigger value="contents">Contents</Tabs.Trigger>
|
||||
</Link>
|
||||
<Link to={`/work/book/${bookId}/overview/reviews`}>
|
||||
<Tabs.Trigger value="reviews">Reviews</Tabs.Trigger>
|
||||
</Link>
|
||||
</Tabs.List>
|
||||
</Tabs.Root>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue