fix(scaffolder): avoid missing key prop console warning

This commit is contained in:
Fredrik Adelöw
2020-09-09 10:48:09 +02:00
parent 8bbbcb3b57
commit 7e07d2907d
2 changed files with 15 additions and 12 deletions
@@ -14,10 +14,10 @@
* limitations under the License.
*/
import React, { FC } from 'react';
import { Typography, makeStyles } from '@material-ui/core';
import { BackstageTheme } from '@backstage/theme';
import { makeStyles, Typography } from '@material-ui/core';
import ErrorOutline from '@material-ui/icons/ErrorOutline';
import React from 'react';
const useErrorOutlineStyles = makeStyles<BackstageTheme>(theme => ({
root: {
@@ -60,9 +60,10 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
type Props = {
message?: React.ReactNode;
title?: string;
children?: React.ReactNode;
};
export const WarningPanel: FC<Props> = props => {
export const WarningPanel = (props: Props) => {
const classes = useStyles(props);
const { title, message, children } = props;
return (