Filter new library item formatting on extensions only.

This commit is contained in:
Evelyn Eastmond committed 2018-11-13 11:44:43 -05:00
1 parent b91c34a18c
commit eeaeb58e35
3 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -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,
+1
View File
@@ -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}
-1
View File
@@ -64,7 +64,6 @@ class ExtensionLibrary extends React.PureComponent {
rawURL: extension.iconURL || extensionIcon,
...extension
}));
console.log(extensionLibraryThumbnailData);
return (
<LibraryComponent
data={extensionLibraryThumbnailData}