File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,6 +201,14 @@ body.dark-mode .libraryItem {
201201 margin-right : 0.25rem ;
202202}
203203
204+ .featuredExtensionMetadataDetail a {
205+ color : blue;
206+ }
207+
208+ .featuredExtensionMetadataDetail a : hover {
209+ text-decoration : underline;
210+ }
211+
204212.comingSoonText {
205213 position : absolute;
206214 background-color : var (--data-primary );
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ class LibraryItemComponent extends React.PureComponent {
5959 < br />
6060 < span
6161 className = { "featuredDescription" }
62- nothing = { ( this . props . description == null ) . toString ( ) }
62+ nothing = { ( ! ! this . props . description ) }
6363 >
64- { this . props . description == null ? this . props . description : "No description provided." }
64+ { this . props . description ? this . props . description : "No description provided." }
6565 </ span >
6666 </ div >
6767
@@ -153,6 +153,20 @@ class LibraryItemComponent extends React.PureComponent {
153153 </ div >
154154 </ div >
155155 ) : null }
156+ { this . props . extDeveloperHREF ? ( ) => {
157+ const { name, href} = this . props . extDeveloperHREF ;
158+ return (
159+ < div >
160+ < div >
161+ Created by
162+ </ div >
163+ < div
164+ className = { "featuredExtensionMetadataDetail" }
165+ >
166+ < a href = { href } > { name } </ a >
167+ </ div >
168+ </ div >
169+ ) } : null }
156170 { this . props . credits && this . props . credits . length > 0 && (
157171 < div >
158172 < FormattedMessage
@@ -247,10 +261,8 @@ LibraryItemComponent.propTypes = {
247261 intl : intlShape ,
248262 bluetoothRequired : PropTypes . bool ,
249263 collaborator : PropTypes . string ,
250- extDeveloper : PropTypes . oneOfType ( [
251- PropTypes . string ,
252- PropTypes . node
253- ] ) ,
264+ extDeveloper : PropTypes . string ,
265+ extDeveloperHREF : PropTypes . func ,
254266 description : PropTypes . oneOfType ( [
255267 PropTypes . string ,
256268 PropTypes . node
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class ExtensionLibrary extends React.Component {
2626 internetConnectionRequired = { item . internetConnectionRequired }
2727 credits = { item . credits }
2828 extDeveloper = { item . extDeveloper }
29+ extDeveloperHREF = { item . extDevHREF }
2930
3031 onBlur = { ( ) => { } }
3132 onClick = { ( ) => { } }
Original file line number Diff line number Diff line change @@ -52,9 +52,10 @@ const menuItems = [
5252 extensionId : 'https://gabsthecuriouskid.github.io/DinosaurModExtensions/extensions/Useless_Blocks.js' ,
5353 iconURL : 'https://gabsthecuriouskid.github.io/DinosaurModExtensions/images/Useless_Blocks.png' ,
5454 description : '' ,
55- extDeveloper : (
56- < a href = "https://www.youtube.com/channel/UCJzRC3HsauioZoc9vKC6W4g" > Jambs</ a >
57- ) ,
55+ extDevHREF : {
56+ name : "Jambs" ,
57+ href : "https://www.youtube.com/channel/UCJzRC3HsauioZoc9vKC6W4g"
58+ } ,
5859 featured : true
5960 } ,
6061] ;
You can’t perform that action at this time.
0 commit comments