refactor: update composable names
This commit is contained in:
parent
787a55bea7
commit
4fc6e405e0
9 changed files with 46 additions and 34 deletions
|
@ -1,10 +1,10 @@
|
|||
import type { MastoClient } from 'masto'
|
||||
import type { AppStore } from '~~/plugins/store.client'
|
||||
import type { ClientState } from '~/plugins/store.client'
|
||||
|
||||
export function useMasto() {
|
||||
return inject('masto') as Promise<MastoClient>
|
||||
return useNuxtApp().$masto as Promise<MastoClient>
|
||||
}
|
||||
|
||||
export function useAppStore() {
|
||||
return inject('app-store') as AppStore
|
||||
export function useClientState() {
|
||||
return useNuxtApp().$clientState as ClientState
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue