From 7da13ee0ce508cf2a197350e8455f44e17e9400c Mon Sep 17 00:00:00 2001 From: Morgan McCauley Date: Tue, 15 Mar 2022 15:45:37 +1300 Subject: [PATCH] feat: Add support for rendering `children` in `` --- packages/frontend/src/components/common/AlertBanner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/common/AlertBanner.js b/packages/frontend/src/components/common/AlertBanner.js index cb3a88a4ba..44b12e8b07 100644 --- a/packages/frontend/src/components/common/AlertBanner.js +++ b/packages/frontend/src/components/common/AlertBanner.js @@ -96,7 +96,7 @@ const Container = styled.div` } `; -export default function AlertBanner({ title, button, linkTo, data, theme }) { +export default function AlertBanner({ title, button, linkTo, data, theme, children }) { return ( {theme !== 'warning' @@ -115,6 +115,7 @@ export default function AlertBanner({ title, button, linkTo, data, theme }) { : null } + {children} );