Skip to content

Commit

Permalink
Fix broken declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-comeau committed Mar 1, 2024
1 parent 4cbb58e commit b66e8c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion frontend/app/components/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ interface SnackbarProps extends ComponentProps<typeof MaterialDesignContent> {}
const Snackbar = forwardRef<HTMLDivElement, SnackbarProps>(({ className, message, ...props }, ref) => {
const ns = useI18nNamespaces();
const { t } = useTranslation(ns);
const translatedMessage = t(message, { defaultValue: message });
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const translatedMessage = t(message as any, { defaultValue: message });
return <MaterialDesignContent ref={ref} className={cn('!rounded-lg !border', className)} message={translatedMessage} {...props} />;
});

Expand Down
7 changes: 2 additions & 5 deletions frontend/app/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type communicationPreference from '../public/locales/en/communication-preferences.json';
import type communicationPreference from '../public/locales/en/communication-preference.json';
import type dataUnavailable from '../public/locales/en/data-unavailable.json';
import type demographicsOralHealthQuestions from '../public/locales/en/demographics-oral-health-questions.json';
import type dentalInsuranceQuestion from '../public/locales/en/dental-insurance-question.json';
import type gcweb from '../public/locales/en/gcweb.json';
Expand All @@ -7,8 +8,6 @@ import type intake from '../public/locales/en/intake.json';
import type letters from '../public/locales/en/letters.json';
import type personalInformation from '../public/locales/en/personal-information.json';
import type reviewInformation from '../public/locales/en/review-information.json';
import type dataUnavailable from '../public/locales/en/udata-unavailable.json';
import type updatePhoneNumber from '../public/locales/en/update-phone-number.json';
import type { PublicEnv } from '~/utils/env.server';

/**
Expand All @@ -30,7 +29,6 @@ declare module 'i18next' {
interface CustomTypeOptions {
defaultNS: false;
resources: {
'access-question': typeof accessQuestion;
'communication-preference': typeof communicationPreference;
'data-unavailable': typeof dataUnavailable;
'demographics-oral-health-questions': typeof demographicsOralHealthQuestions;
Expand All @@ -40,7 +38,6 @@ declare module 'i18next' {
intake: typeof intake;
letters: typeof letters;
'personal-information': typeof personalInformation;
'update-phone-number': typeof updatePhoneNumber;
'review-information': typeof reviewInformation;
};
}
Expand Down

0 comments on commit b66e8c8

Please sign in to comment.