Skip to content

Commit

Permalink
Update home to still allow users to use mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaunwei committed Jul 30, 2023
1 parent ad6a77e commit 25cc08f
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions client/web/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,24 @@ const Home = ({
}

return (
isMobile ? (
<MobileWarning />
) : (
<div id="desktop-content">
{ loading ? (<h2>Loading...</h2>) : (
<>
<p className="header">Choose Your Partner</p>

<Characters
characterGroups={characterGroups}
selectedCharacter={selectedCharacter}
setSelectedCharacter={setSelectedCharacter}
isPlaying={isPlaying}
characterConfirmed={characterConfirmed}
/>
<div id="desktop-content">
{isMobile && <MobileWarning />}
{loading ? (<h2>Loading...</h2>) : (
<>
<p className="header">Choose Your Partner</p>

<Button onClick={handleNextClick} name="Next" disabled={!selectedCharacter}/>
</>)}
</div>
)
)
<Characters
characterGroups={characterGroups}
selectedCharacter={selectedCharacter}
setSelectedCharacter={setSelectedCharacter}
isPlaying={isPlaying}
characterConfirmed={characterConfirmed}
/>

<Button onClick={handleNextClick} name="Next" disabled={!selectedCharacter} />
</>)}
</div>
);
};

export default Home;

0 comments on commit 25cc08f

Please sign in to comment.