Commit bf5c0b4 1 parent 3821ca2 commit bf5c0b4 Copy full SHA for bf5c0b4
File tree 1 file changed +4
-3
lines changed
src/app/developer/components
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,9 @@ const Books = () => {
56
56
}
57
57
} , [ archiveLoader , osWebLoader ] ) ;
58
58
59
- const renderBookLink = ( id : string , book : Book | undefined ) => {
59
+ function BookLink ( { id , book } : { id : string , book : Book | undefined } ) {
60
60
const page = book && findDefaultBookPage ( book ) ;
61
+
61
62
return < >
62
63
< div >
63
64
< H3 > { book && page
@@ -75,12 +76,12 @@ const Books = () => {
75
76
: null
76
77
}
77
78
</ > ;
78
- } ;
79
+ }
79
80
80
81
return < Panel title = 'Books' >
81
82
< ul style = { { paddingBottom : '5rem' } } >
82
83
{ books . map ( ( [ id , config , book ] ) => < BookLI key = { id } >
83
- { renderBookLink ( `${ id } @${ config . defaultVersion } ` , book ) }
84
+ < BookLink id = { `${ id } @${ config . defaultVersion } ` } book = { book } />
84
85
</ BookLI > ) }
85
86
</ ul >
86
87
</ Panel > ;
You can’t perform that action at this time.
0 commit comments