Filter new library item formatting on extensions only.
This commit is contained in:
1 parent
b91c34a18c
commit
eeaeb58e35
3 files changed
+3
-2
No files matched your search
@@ -82,7 +82,7 @@ class LibraryItem extends React.PureComponent {
|
||||
</div>
|
||||
) : null}
|
||||
<div
|
||||
className={true ? /* TODO: make extension-only */
|
||||
className={this.props.extensionId ? /* TODO: make extension-only */
|
||||
classNames(styles.featuredExtensionText, styles.featuredText) : styles.featuredText
|
||||
}
|
||||
>
|
||||
@@ -176,6 +176,7 @@ LibraryItem.propTypes = {
|
||||
PropTypes.node
|
||||
]),
|
||||
disabled: PropTypes.bool,
|
||||
extensionId: PropTypes.string,
|
||||
featured: PropTypes.bool,
|
||||
iconURL: PropTypes.string.isRequired,
|
||||
id: PropTypes.number.isRequired,
|
||||
|
||||
@@ -180,6 +180,7 @@ class LibraryComponent extends React.Component {
|
||||
collaborator={dataItem.collaborator}
|
||||
description={dataItem.description}
|
||||
disabled={dataItem.disabled}
|
||||
extensionId={dataItem.extensionId}
|
||||
featured={dataItem.featured}
|
||||
iconURL={scratchURL}
|
||||
id={index}
|
||||
|
||||
@@ -64,7 +64,6 @@ class ExtensionLibrary extends React.PureComponent {
|
||||
rawURL: extension.iconURL || extensionIcon,
|
||||
...extension
|
||||
}));
|
||||
console.log(extensionLibraryThumbnailData);
|
||||
return (
|
||||
<LibraryComponent
|
||||
data={extensionLibraryThumbnailData}
|
||||
|
||||
Reference in new issue
Block a user