From cae5d1c95afeb17f84df5ab21ba4d7af40a2b69b Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 21 Dec 2020 16:49:33 +0530 Subject: [PATCH] Move page structure of warning into GenericPageWithIcon --- src/plugins/GenericPageWithIcon.js | 32 ++++++++++++++++++++++++++++++ src/plugins/warning.js | 22 ++++++-------------- 2 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 src/plugins/GenericPageWithIcon.js diff --git a/src/plugins/GenericPageWithIcon.js b/src/plugins/GenericPageWithIcon.js new file mode 100644 index 0000000..b24a221 --- /dev/null +++ b/src/plugins/GenericPageWithIcon.js @@ -0,0 +1,32 @@ +import React from "react"; +import PropTypes from "prop-types"; +import { Box, Button, Heading, Text } from "grommet"; + +function GenericPageWithIcon(props) { + return ( + + {props.icon} + {props.title} + {props.description} +