Skip to content

Commit 4c59a5e

Browse files
authored
fix: useTheme not defined errror (#5981)
1 parent 678f804 commit 4c59a5e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

apps/frontend/src/components/ui/charts/ChartDisplay.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ import dayjs from 'dayjs'
324324
import { computed } from 'vue'
325325
326326
import { UiChartsChart as Chart, UiChartsCompactChart as CompactChart } from '#components'
327+
import { useTheme } from '~/composables/nuxt-accessors.ts'
327328
import {
328329
analyticsSetToCSVString,
329330
countryCodeToFlag,

apps/frontend/src/utils/analytics.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { injectI18n, useDebugLogger } from '@modrinth/ui'
22
import dayjs from 'dayjs'
33
import { computed, ref, watch } from 'vue'
44

5+
import { useTheme } from '~/composables/nuxt-accessors.ts'
6+
57
// note: build step can miss unix import for some reason, so
68
// we have to import it like this
79

0 commit comments

Comments
 (0)