File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import GitHubIcon from '@material-ui/icons/GitHub';
11
11
export default function Landing ( ) {
12
12
// const { user, signInWithGoogle } = useAuth();
13
13
const history = useHistory ( ) ;
14
- const { updateStoryValue } = useStory ( ) ;
14
+ const { storyValue , updateStoryValue } = useStory ( ) ;
15
15
16
16
async function gameMode ( mode : String ) {
17
17
if ( mode === 'new-game' ) { // Parâmetros para novo jogo do modo história
@@ -58,19 +58,16 @@ export default function Landing() {
58
58
} }
59
59
>
60
60
< Paper className = "paper" >
61
- { /* <Grid container spacing={2} justify="center">
61
+ < Grid container spacing = { 2 } justify = "center" >
62
62
< Button
63
63
size = "large"
64
64
color = "primary"
65
65
onClick = { ( ) => gameMode ( 'story-mode' ) }
66
- disabled={
67
- // Havendo cookie, há opção de continuar história
68
- String(Cookies.get('storyNumber')) !== 'undefined' ? false : true
69
- }
66
+ disabled = { storyValue . inGame ? false : true }
70
67
>
71
68
Continuar História
72
69
</ Button >
73
- </Grid> */ }
70
+ </ Grid >
74
71
< Grid container spacing = { 2 } justify = "center" >
75
72
< Button
76
73
size = "large"
You can’t perform that action at this time.
0 commit comments