diff --git a/apps/compliance-portal/src/components/LocaleMismatchCallout.tsx b/apps/compliance-portal/src/components/LocaleMismatchCallout/LocaleMismatchCallout.tsx similarity index 89% rename from apps/compliance-portal/src/components/LocaleMismatchCallout.tsx rename to apps/compliance-portal/src/components/LocaleMismatchCallout/LocaleMismatchCallout.tsx index 954985928..da5789037 100644 --- a/apps/compliance-portal/src/components/LocaleMismatchCallout.tsx +++ b/apps/compliance-portal/src/components/LocaleMismatchCallout/LocaleMismatchCallout.tsx @@ -37,6 +37,7 @@ import { useLocale } from "#/lib/i18n/useLocale"; import { useUpdateLocale } from "#/lib/i18n/useUpdateLocale"; import type { LocaleMismatchCallout_identity$key } from "./__generated__/LocaleMismatchCallout_identity.graphql"; +import { localeMismatchCallout } from "./variants"; const localeMismatchCalloutFragment = graphql` fragment LocaleMismatchCallout_identity on Identity { @@ -94,6 +95,7 @@ export function LocaleMismatchCallout({ identityKey }: LocaleMismatchCalloutProp const urlLabel = URL_LOCALE_LABELS[urlLocale]; const savedLabel = URL_LOCALE_LABELS[savedLocale]; const busy = isChanging || isUpdating; + const slots = localeMismatchCallout(); const switchToSaved = () => { void changeLocale(savedLocale, { persist: false }); @@ -106,13 +108,10 @@ export function LocaleMismatchCallout({ identityKey }: LocaleMismatchCalloutProp }; return ( -