From 1cd03796541a739f0d89f7b1b50408480214b377 Mon Sep 17 00:00:00 2001 From: Theis Date: Sun, 24 May 2026 13:12:09 +0200 Subject: [PATCH] redesgigned page --- frontend/src/pages/MainForm.tsx | 66 ++++++++++++++++----------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/frontend/src/pages/MainForm.tsx b/frontend/src/pages/MainForm.tsx index 9939e1f..70f0ad4 100644 --- a/frontend/src/pages/MainForm.tsx +++ b/frontend/src/pages/MainForm.tsx @@ -248,7 +248,6 @@ export const MainForm = () => { {/* Name row */}
- {t("first-name")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("first-name")} { {errors[0]} )} - + ); }} - {t("last-name")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("last-name")} { {errors[0]} )} - + ); }}
- {t("email")} {(field) => { const errors = getErrors(field); return ( - <> + + {t("email")} { {errors.length > 0 && ( {errors[0]} )} - + ); }} - {t("phone-number")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("phone-number")} { {errors.length > 0 && ( {errors[0]} )} - + ); }} @@ -410,7 +410,6 @@ export const MainForm = () => { {t("invoice-details")} - {t("company-name")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("company-name")} { {errors[0]} )} - + ); }}
- {t("first-name")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("first-name")} { {errors[0]} )} - + ); }} - {t("last-name")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("last-name")} { {errors[0]} )} - + ); }}
- {t("street")} {(field) => { const errors = getErrors(field); return ( - <> + + {t("street")} { {errors[0]} )} - + ); }} - {t("postal-code")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("postal-code")} { {errors[0]} )} - + ); }} - {t("phone-number")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("phone-number")} { {errors[0]} )} - + ); }} - {t("email")} { {(field) => { const errors = getErrors(field); return ( - <> + + {t("email")} { {errors[0]} )} - + ); }}