Skip to content

Commit

Permalink
Fix a small browser console warning
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
  • Loading branch information
freben committed Dec 21, 2021
1 parent 56386f6 commit c5eb756
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/dirty-ways-learn.md
@@ -0,0 +1,6 @@
---
'@backstage/plugin-config-schema': patch
'@backstage/plugin-scaffolder': patch
---

Fix a small browser console warning
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { createStyles, fade, withStyles } from '@material-ui/core';
import { createStyles, alpha, withStyles } from '@material-ui/core';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import { TreeItem, TreeItemProps, TreeView } from '@material-ui/lab';
Expand All @@ -30,7 +30,7 @@ const StyledTreeItem = withStyles(theme =>
group: {
marginLeft: 7,
paddingLeft: theme.spacing(1),
borderLeft: `1px solid ${fade(theme.palette.text.primary, 0.15)}`,
borderLeft: `1px solid ${alpha(theme.palette.text.primary, 0.15)}`,
},
}),
)((props: TreeItemProps) => <TreeItem {...props} />);
Expand Down
Expand Up @@ -109,13 +109,15 @@ export const ScaffolderPageContents = ({
</div>
<div>
{groups &&
groups.map(group => (
groups.map((group, index) => (
<TemplateList
key={index}
TemplateCardComponent={TemplateCardComponent}
group={group}
/>
))}
<TemplateList
key="other"
TemplateCardComponent={TemplateCardComponent}
group={otherTemplatesGroup}
/>
Expand Down

0 comments on commit c5eb756

Please sign in to comment.