diff --git a/src/renderer/src/components/settings/MobileRelayStatusSection.test.tsx b/src/renderer/src/components/settings/MobileRelayStatusSection.test.tsx index 115f3bc884b..b054222f2c4 100644 --- a/src/renderer/src/components/settings/MobileRelayStatusSection.test.tsx +++ b/src/renderer/src/components/settings/MobileRelayStatusSection.test.tsx @@ -19,10 +19,14 @@ const mocks = vi.hoisted(() => ({ state: {} as MobileRelayStoreState })) -vi.mock('@/store', () => ({ +vi.mock('../../store', () => ({ useAppStore: (selector: (state: MobileRelayStoreState) => unknown) => selector(mocks.state) })) +vi.mock('../../i18n/i18n', () => ({ + translate: (_key: string, fallback: string) => fallback +})) + describe('MobileRelayStatusSection', () => { let statusListener: ((status: MobileRelayStatus) => void) | null const connect = vi.fn().mockResolvedValue(null) diff --git a/src/renderer/src/components/settings/MobileRelayStatusSection.tsx b/src/renderer/src/components/settings/MobileRelayStatusSection.tsx index 79312e97738..c73b2c74a51 100644 --- a/src/renderer/src/components/settings/MobileRelayStatusSection.tsx +++ b/src/renderer/src/components/settings/MobileRelayStatusSection.tsx @@ -2,8 +2,8 @@ import { useEffect, useState } from 'react' import { Loader2 } from 'lucide-react' import { Badge } from '../ui/badge' import { Button } from '../ui/button' -import { translate } from '@/i18n/i18n' -import { useAppStore } from '@/store' +import { translate } from '../../i18n/i18n' +import { useAppStore } from '../../store' import type { MobileRelayStatus } from '../../../../shared/mobile-relay-status' function relayStatusLabel(status: MobileRelayStatus): string {