Skip to content

Commit

Permalink
Restaurado continuação da história
Browse files Browse the repository at this point in the history
  • Loading branch information
gonribeiro committed Jul 7, 2021
1 parent f10761b commit 691f581
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/pages/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import GitHubIcon from '@material-ui/icons/GitHub';
export default function Landing() {
// const { user, signInWithGoogle } = useAuth();
const history = useHistory();
const { updateStoryValue } = useStory();
const { storyValue, updateStoryValue } = useStory();

async function gameMode(mode: String) {
if (mode === 'new-game') { // Parâmetros para novo jogo do modo história
Expand Down Expand Up @@ -58,19 +58,16 @@ export default function Landing() {
}}
>
<Paper className="paper">
{/* <Grid container spacing={2} justify="center">
<Grid container spacing={2} justify="center">
<Button
size="large"
color="primary"
onClick={() => gameMode('story-mode')}
disabled={
// Havendo cookie, há opção de continuar história
String(Cookies.get('storyNumber')) !== 'undefined' ? false : true
}
disabled={storyValue.inGame ? false : true}
>
Continuar História
</Button>
</Grid> */}
</Grid>
<Grid container spacing={2} justify="center">
<Button
size="large"
Expand Down

0 comments on commit 691f581

Please sign in to comment.