Skip to content

Commit

Permalink
use onmount
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-rash committed Mar 8, 2024
1 parent cda7e6b commit 4b5ea2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions natster-io/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
A peer-to-multipeer media sharing application built with nothing but NATS and powered by
Synadia Cloud.
</p>
<div v-if="!codeProvided" class="mt-10 flex items-center gap-x-6">
<div class="mt-10 flex items-center gap-x-6">
<button @click.prevent="login"
class="rounded-md bg-indigo-500 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-400">
Login
Expand All @@ -66,7 +66,7 @@
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
import { userStore } from '../stores/user.js'
import { useAuth0 } from '@auth0/auth0-vue'
Expand All @@ -76,7 +76,7 @@ const natsterImg = new URL('@/assets/natster.svg', import.meta.url)
const natsterScreen = new URL('@/assets/natster_screen.png', import.meta.url)
const { loginWithRedirect } = useAuth0()
const codeProvided = computed(() => {
onMounted(() => {
const uStore = userStore()
const route = useRoute()
Expand Down

0 comments on commit 4b5ea2b

Please sign in to comment.