Skip to content

Commit 3e559c7

Browse files
feat: some little fixes and improvements
1 parent 3934715 commit 3e559c7

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

app/features/book/manager/page-book.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ export const PageBook = (props: { params: { id: string } }) => {
5858
.match(['not-found', 'error'], () => (
5959
<AlertCircleIcon className="size-4 text-muted-foreground" />
6060
))
61-
.match('default', ({ book }) => <>{book.title}</>)
61+
.match('default', ({ book }) => (
62+
<>
63+
{book.title} - {book.author}
64+
</>
65+
))
6266
.exhaustive()}
6367
</PageLayoutTopBarTitle>
6468
</PageLayoutTopBar>

app/features/book/manager/page-books.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const PageBooks = (props: { search: { searchTerm?: string } }) => {
7676
<PageLayout>
7777
<PageLayoutTopBar
7878
actions={
79-
<ResponsiveIconButton label="New Repo" variant="secondary" size="sm">
79+
<ResponsiveIconButton label="New Book" variant="secondary" size="sm">
8080
<PlusIcon />
8181
</ResponsiveIconButton>
8282
}
@@ -140,6 +140,20 @@ export const PageBooks = (props: { search: { searchTerm?: string } }) => {
140140
{item.author}
141141
</DataListText>
142142
</DataListCell>
143+
<DataListCell>
144+
{item.genre && (
145+
<DataListText className="text-xs text-muted-foreground">
146+
{item.genre}
147+
</DataListText>
148+
)}
149+
</DataListCell>
150+
<DataListCell>
151+
{item.publisher && (
152+
<DataListText className="text-xs text-muted-foreground">
153+
{item.publisher}
154+
</DataListText>
155+
)}
156+
</DataListCell>
143157
</DataListRow>
144158
))}
145159
<DataListRow>

app/features/user/manager/page-user-new.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const PageUserNew = () => {
6262
return;
6363
}
6464

65-
toast.error('Failed to update user');
65+
toast.error('Failed to create user');
6666
},
6767
})
6868
);

0 commit comments

Comments
 (0)