From d8d5f9edc5139825884720f9be44944af2e094aa Mon Sep 17 00:00:00 2001 From: vidvidvid Date: Sun, 10 Oct 2021 20:18:45 +0200 Subject: [PATCH] fix header and description mess --- packages/web/components/Setup/SetupPlayerType.tsx | 13 ++++++++++++- packages/web/pages/profile/setup/playerType.tsx | 8 -------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/web/components/Setup/SetupPlayerType.tsx b/packages/web/components/Setup/SetupPlayerType.tsx index b391f4a6..93134bea 100644 --- a/packages/web/components/Setup/SetupPlayerType.tsx +++ b/packages/web/components/Setup/SetupPlayerType.tsx @@ -1,6 +1,7 @@ import { Button, MetaButton, + MetaHeading, ModalFooter, SimpleGrid, Text, @@ -28,6 +29,7 @@ export const SetupPlayerType: React.FC = ({ isEdit, onClose }) => { const [playerType, setPlayerType] = useState(); const { user } = useUser({ redirectTo: '/' }); + const isWizard = !isEdit; if (user?.player) { const { player } = user; @@ -80,6 +82,15 @@ export const SetupPlayerType: React.FC = ({ isEdit, onClose }) => { return ( + {isWizard && ( + + Player Type + + )} + + Please read the features of each player type below. And select the one + that suits you best. + {playerTypeChoices.map((p) => ( = ({ isEdit, onClose }) => { )} - {!isEdit && ( + {isWizard && ( ( - - Player Type - - - Please read the features of each player type below. And select the one - that suits you best. -