Skip to content

Commit

Permalink
Merge pull request #79 from odyssey-dev/develop
Browse files Browse the repository at this point in the history
add button
  • Loading branch information
JoshDanielWalker authored Oct 18, 2020
2 parents 6210270 + 8158f5b commit bddf8fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/js/userstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ auth.onAuthStateChanged(user => {
email: user.email,
emailVerified: user.emailVerified,
photoUrl: user.photoURL,
uid: user.uid
uid: user.uid,
token: user.xa
});
console.log("Auth Ready");
} else {
Expand Down
13 changes: 11 additions & 2 deletions src/pages/home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,18 @@
{:catch error}
<p style="color: red">{error.message}</p>
{/await}
{:else}
<div class="card">
<Block strong inset>
<Row>
<Col width="100">
<Button fill raised on:click={getLocation}>Discover</Button>
</Col>
</Row>
</Block>
</div>
{/if}

<!-- Enable for debugging -->
<!-- <div class="cards">
<div class="card-block">
Expand Down Expand Up @@ -498,7 +508,6 @@
document.addEventListener("DOMContentLoaded", function(){
console.log("Ready");
getLocation();
});
// move to achievement-get component
Expand Down

0 comments on commit bddf8fa

Please sign in to comment.