mirror of
https://github.com/modrinth/code.git
synced 2026-09-03 21:39:24 +00:00
fix error pages (#7338)
This commit is contained in:
@@ -33,7 +33,7 @@ import {
|
|||||||
import { useAuth } from './composables/auth'
|
import { useAuth } from './composables/auth'
|
||||||
|
|
||||||
const auth = await useAuth()
|
const auth = await useAuth()
|
||||||
const userPreferences = setupProviders(auth)
|
const { userPreferences } = setupProviders(auth)
|
||||||
const cosmetics = useCosmetics()
|
const cosmetics = useCosmetics()
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
const { locale, setLocale } = injectI18n()
|
const { locale, setLocale } = injectI18n()
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ import {
|
|||||||
commonMessages,
|
commonMessages,
|
||||||
defineMessage,
|
defineMessage,
|
||||||
defineMessages,
|
defineMessages,
|
||||||
injectNotificationManager,
|
|
||||||
IntlFormatted,
|
IntlFormatted,
|
||||||
LoadingBar,
|
LoadingBar,
|
||||||
normalizeChildren,
|
normalizeChildren,
|
||||||
@@ -131,10 +130,10 @@ import { getSignInRouteObj } from '~/composables/auth.js'
|
|||||||
import { setupProviders } from '~/providers/setup.ts'
|
import { setupProviders } from '~/providers/setup.ts'
|
||||||
|
|
||||||
const auth = await useAuth()
|
const auth = await useAuth()
|
||||||
setupProviders(auth)
|
const { notificationManager } = setupProviders(auth)
|
||||||
|
|
||||||
const { formatMessage } = useVIntl()
|
const { formatMessage } = useVIntl()
|
||||||
const { addNotification } = injectNotificationManager()
|
const { addNotification } = notificationManager
|
||||||
const isSwitchingAccount = useIsSwitchingAccount()
|
const isSwitchingAccount = useIsSwitchingAccount()
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|||||||
@@ -28,5 +28,5 @@ export function setupProviders(auth: Awaited<ReturnType<typeof useAuth>>) {
|
|||||||
setupLoadingStateProvider()
|
setupLoadingStateProvider()
|
||||||
setupUserCountryProvider()
|
setupUserCountryProvider()
|
||||||
|
|
||||||
return userPreferences
|
return { userPreferences, notificationManager }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user