From 5262b65f106dd361c800c99600a8744c53dc7993 Mon Sep 17 00:00:00 2001 From: Dillon Barnes Date: Mon, 17 Jun 2024 18:07:12 +0100 Subject: [PATCH] improve layout on shop items --- components/arcade/prizes.js | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/components/arcade/prizes.js b/components/arcade/prizes.js index 2f532813..f8f0a43b 100644 --- a/components/arcade/prizes.js +++ b/components/arcade/prizes.js @@ -22,12 +22,16 @@ const Prizes = ({ /\[(.*?)\]\((.*?)\)/g, '$1' ) + const parsedSubText = subtext?.replace(/\[(.*?)\]\((.*?)\)/g, + '$1') + return ( + + - {subtext} - + dangerouslySetInnerHTML={{ __html: parsedSubText }} + /> - {link ? ( - <> + + {link && ( + - You can order {quantity} of these + You can order {quantity} of these @@ -99,9 +105,7 @@ const Prizes = ({ Buy - - ) : ( - <> + )} - - {subtext} - + +