fix: lint

This commit is contained in:
Benjamin Canac
2022-01-19 12:33:02 +01:00
parent 994cb8248f
commit 78013a7b25
2 changed files with 2 additions and 2 deletions

View File

@@ -21,8 +21,8 @@
</template>
<script setup>
import Notification from './Notification'
import { useNuxtApp, useState } from '#app'
import Notification from './Notification'
const { $toast } = useNuxtApp()
const notifications = useState('notifications')

View File

@@ -1,7 +1,7 @@
import { nanoid } from 'nanoid'
import { Ref } from 'vue'
import { ToastNotification, ToastPlugin } from '../../types'
import { defineNuxtPlugin, useState } from '#app'
import { ToastNotification, ToastPlugin } from '../../types'
export default defineNuxtPlugin((nuxtApp) => {
const notifications: Ref<ToastNotification[]> = useState('notifications', () => [])