From a34fbdcf3f073c5279505b6dfbcb4ee14bc44064 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Thu, 14 May 2026 09:27:07 +0200 Subject: [PATCH] Fix duplicate export warning (#2004) --- .../popup/pages/settings/AutofillSettings.tsx | 3 ++- .../src/utils/LocalPreferencesService.ts | 11 ++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx b/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx index 82edebea9..ae7cca022 100644 --- a/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx +++ b/apps/browser-extension/src/entrypoints/popup/pages/settings/AutofillSettings.tsx @@ -4,7 +4,8 @@ import { useTranslation } from 'react-i18next'; import PageTitle from '@/entrypoints/popup/components/PageTitle'; import { useLoading } from '@/entrypoints/popup/context/LoadingContext'; -import { AutofillMatchingMode, LocalPreferencesService } from '@/utils/LocalPreferencesService'; +import { LocalPreferencesService } from '@/utils/LocalPreferencesService'; +import { AutofillMatchingMode } from '@/utils/RustCore'; /** * Autofill settings type. diff --git a/apps/browser-extension/src/utils/LocalPreferencesService.ts b/apps/browser-extension/src/utils/LocalPreferencesService.ts index ef709d7cc..625cfe493 100644 --- a/apps/browser-extension/src/utils/LocalPreferencesService.ts +++ b/apps/browser-extension/src/utils/LocalPreferencesService.ts @@ -1,3 +1,5 @@ +import { AutofillMatchingMode } from '@/utils/RustCore'; + import { storage } from '#imports'; /* @@ -48,15 +50,6 @@ const KEYS = { PASSWORD_UNLOCK_FAILED_ATTEMPTS: 'local:password_unlock_failed_attempts', } as const; -/** - * Autofill matching mode options. - */ -export enum AutofillMatchingMode { - DEFAULT = 'default', - URL_SUBDOMAIN = 'url_subdomain', - URL_EXACT = 'url_exact', -} - /** * Service for managing user preferences that are stored locally (not in the vault). * Provides typed getters/setters with sensible defaults for all local storage settings.