mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 04:37:57 +01:00
chore(Notifications): use #imports instead of #app
This commit is contained in:
@@ -18,8 +18,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useNuxtApp, useState } from '#app'
|
|
||||||
import Notification from './Notification'
|
import Notification from './Notification'
|
||||||
|
import { useNuxtApp, useState } from '#imports'
|
||||||
|
|
||||||
const { $toast } = useNuxtApp()
|
const { $toast } = useNuxtApp()
|
||||||
const notifications = useState('notifications', () => [])
|
const notifications = useState('notifications', () => [])
|
||||||
|
|||||||
Reference in New Issue
Block a user