From bd86d612a3ff776a07e992ed8bf8d7d2cce089f5 Mon Sep 17 00:00:00 2001 From: Gordon Wang Date: Wed, 11 Oct 2023 22:46:01 +1100 Subject: [PATCH] Fixed example code being unreadable --- frontend/src/component/StyleComponents.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/component/StyleComponents.jsx b/frontend/src/component/StyleComponents.jsx index c21823a..68cdfa9 100644 --- a/frontend/src/component/StyleComponents.jsx +++ b/frontend/src/component/StyleComponents.jsx @@ -37,15 +37,17 @@ export const HR = () => { export const Code = (props) => { /*
*/ + + // All code elements in this div will have a background color of transparent return ( -
+ {props.children} -
+ ) } @@ -86,7 +88,7 @@ const ExampleAccordionWrapper = ({ children, title = 'Example' }) => { setExpand(!expand)}> - {`${(title)}:`} + {`💡 ${(title)}:`}