diff --git a/src/components/tool/guide/Instructions/components/InstructionText.js b/src/components/tool/guide/Instructions/components/InstructionText.js index 061f675a..188b2633 100644 --- a/src/components/tool/guide/Instructions/components/InstructionText.js +++ b/src/components/tool/guide/Instructions/components/InstructionText.js @@ -1,5 +1,9 @@ -import { Text } from "@chakra-ui/react"; +import { Box, Text } from "@chakra-ui/react"; export default function InstructionText({ children }) { - return {children}; + return typeof children === "string" ? ( + {children} + ) : ( + {children} + ); }