Skip to content

Commit

Permalink
fix by matt, feel free to drop this commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Aug 30, 2023
1 parent 901d330 commit 0696bf0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<template>
<div class="landing">
<div class="landing__background flex pt-4 md:pt-24">
<button class="btn btn-default btn-fill" @click="showSwal">
<i18n tag="p" path="typhoonInfo">
<template #br><br /></template>
</i18n>
</button>
<div class="landing__background__items">
<img
class="landing__background__items__meter"
Expand Down Expand Up @@ -135,6 +130,7 @@ import Modal from '@/components/core/modal/Modal'
import SponsorCardCollection from '@/components/sponsors/SponsorCardCollection'
import Intro from '@/components/intro/Intro'
import swal from 'sweetalert2'
import 'sweetalert2/dist/sweetalert2.css'
export default {
i18n,
Expand Down Expand Up @@ -185,6 +181,9 @@ export default {
created() {
this.$store.dispatch('$getSponsorsData')
},
mounted() {
this.showSwal()
},
methods: {
showModal(sponsor) {
this.isOpened = true
Expand All @@ -196,7 +195,7 @@ export default {
return data[attributeName]
},
showSwal() {
swal({
return new swal({ // eslint-disable-line
title: `Notification`,
buttonsStyling: false,
confirmButtonClass: 'btn btn-success btn-fill',
Expand Down

0 comments on commit 0696bf0

Please sign in to comment.