mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
feat: add shared UI package auth DI (#5720)
* feat: add shared UI package auth DI * use refs instead of reactive * pnpm prepr * move app auth provider setup to src/providers/setup
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { provideNotificationManager } from '@modrinth/ui'
|
||||
|
||||
import { FrontendNotificationManager } from './frontend-notifications'
|
||||
import { setupAuthProvider } from './setup/auth'
|
||||
import { setupFilePickerProvider } from './setup/file-picker'
|
||||
import { setupModrinthClientProvider } from './setup/modrinth-client'
|
||||
import { setupPageContextProvider } from './setup/page-context'
|
||||
@@ -9,6 +10,7 @@ import { setupTagsProvider } from './setup/tags'
|
||||
export function setupProviders(auth: Awaited<ReturnType<typeof useAuth>>) {
|
||||
provideNotificationManager(new FrontendNotificationManager())
|
||||
|
||||
setupAuthProvider(auth)
|
||||
setupModrinthClientProvider(auth)
|
||||
setupTagsProvider()
|
||||
setupFilePickerProvider()
|
||||
|
||||
Reference in New Issue
Block a user