File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ export const PageBook = (props: { params: { id: string } }) => {
58
58
. match ( [ 'not-found' , 'error' ] , ( ) => (
59
59
< AlertCircleIcon className = "size-4 text-muted-foreground" />
60
60
) )
61
- . match ( 'default' , ( { book } ) => < > { book . title } </ > )
61
+ . match ( 'default' , ( { book } ) => (
62
+ < >
63
+ { book . title } - { book . author }
64
+ </ >
65
+ ) )
62
66
. exhaustive ( ) }
63
67
</ PageLayoutTopBarTitle >
64
68
</ PageLayoutTopBar >
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export const PageBooks = (props: { search: { searchTerm?: string } }) => {
76
76
< PageLayout >
77
77
< PageLayoutTopBar
78
78
actions = {
79
- < ResponsiveIconButton label = "New Repo " variant = "secondary" size = "sm" >
79
+ < ResponsiveIconButton label = "New Book " variant = "secondary" size = "sm" >
80
80
< PlusIcon />
81
81
</ ResponsiveIconButton >
82
82
}
@@ -140,6 +140,20 @@ export const PageBooks = (props: { search: { searchTerm?: string } }) => {
140
140
{ item . author }
141
141
</ DataListText >
142
142
</ 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 >
143
157
</ DataListRow >
144
158
) ) }
145
159
< DataListRow >
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export const PageUserNew = () => {
62
62
return ;
63
63
}
64
64
65
- toast . error ( 'Failed to update user' ) ;
65
+ toast . error ( 'Failed to create user' ) ;
66
66
} ,
67
67
} )
68
68
) ;
You can’t perform that action at this time.
0 commit comments