diff --git a/src/components/errors/server-component-error-handler.tsx b/src/components/errors/server-component-error-handler.tsx index d83fa9e9..743fe9f7 100644 --- a/src/components/errors/server-component-error-handler.tsx +++ b/src/components/errors/server-component-error-handler.tsx @@ -7,9 +7,7 @@ import {useTranslations} from "@/i18n/provider"; type Props = { state: - | {success?: boolean | null; errors?: ValidationErrorMap} - | null - | undefined; + {success?: boolean | null; errors?: ValidationErrorMap} | null | undefined; }; function ServerComponentErrorHandler({state}: Props) { diff --git a/src/dal/public/articles.ts b/src/dal/public/articles.ts index 4bff5b05..8a570813 100644 --- a/src/dal/public/articles.ts +++ b/src/dal/public/articles.ts @@ -18,7 +18,9 @@ export async function fetchArticles(config?: AxiosRequestConfig) { export const fetchArticleByCorrelationUUID = cache( async (correlationUUID: string, languageCode?: string) => { const response = await publicDalDriver.get(`articles/${correlationUUID}`, { - headers: languageCode ? {[LANGUAGE_CODE_HEADER]: languageCode} : undefined, + headers: languageCode + ? {[LANGUAGE_CODE_HEADER]: languageCode} + : undefined, validateStatus: (status) => status < 500, }); if (response.status === 404) { diff --git a/src/features/auth/components/reset-password-form.tsx b/src/features/auth/components/reset-password-form.tsx index 387b6368..870d4501 100644 --- a/src/features/auth/components/reset-password-form.tsx +++ b/src/features/auth/components/reset-password-form.tsx @@ -72,7 +72,9 @@ export function ResetPasswordForm({token}: Props) { name="confirm_password" mt={"sm"} value={confirmPassword} - onChange={(event) => setConfirmPassword(event.currentTarget.value)} + onChange={(event) => + setConfirmPassword(event.currentTarget.value) + } error={state?.errors?.confirm_password ?? ""} disabled={state?.success} required diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts index a4e33035..e6e2e650 100644 --- a/src/i18n/translations.ts +++ b/src/i18n/translations.ts @@ -9,7 +9,10 @@ import fa from "./dictionaries/fa.json"; type Dictionary = {config: {direction: Direction}} & Record; type Messages = Omit; -function adapt(dictionary: Dictionary): {direction: Direction; messages: Messages} { +function adapt(dictionary: Dictionary): { + direction: Direction; + messages: Messages; +} { const {config, ...messages} = dictionary; return {direction: config.direction, messages}; }