From 309d06c53b4d128ce64766488af02a826cdc1c46 Mon Sep 17 00:00:00 2001 From: Tor Idland Date: Tue, 28 May 2024 09:09:38 +0200 Subject: [PATCH] :children_crossing: ErrorSummary i UtenlandsPeriodeVelger --- .../MonthPickerWrapper/MonthPickerWrapper.tsx | 2 +- .../input/countryselector/CountrySelector.tsx | 4 ++-- .../UtenlandsPeriode.module.css | 3 +++ .../UtenlandsPeriodeVelger.tsx | 15 +++++++++++++++ 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/components/input/MonthPickerWrapper/MonthPickerWrapper.tsx b/components/input/MonthPickerWrapper/MonthPickerWrapper.tsx index 7020836c..44e9529e 100644 --- a/components/input/MonthPickerWrapper/MonthPickerWrapper.tsx +++ b/components/input/MonthPickerWrapper/MonthPickerWrapper.tsx @@ -35,7 +35,7 @@ export const MonthPickerWrapper = ({ dropdownCaption={dropdownCaption} defaultSelected={selectedDate} > - + ); }; diff --git a/components/input/countryselector/CountrySelector.tsx b/components/input/countryselector/CountrySelector.tsx index b693daf9..7ddbcf1f 100644 --- a/components/input/countryselector/CountrySelector.tsx +++ b/components/input/countryselector/CountrySelector.tsx @@ -19,13 +19,13 @@ const CountrySelector = ({ name, label, className, onChange, value, error }: Pro return Object.entries(countries.getNames('nb', { select: 'official' })) .filter((country) => country[0] !== 'NO' && country[0] !== 'SJ') .sort( - (a, b) => (a[1] > b[1] ? 1 : -1) // Sorterer alfabetisk på navn i stedet for landkode + (a, b) => (a[1] > b[1] ? 1 : -1), // Sorterer alfabetisk på navn i stedet for landkode ); }, [countries]); return (
- {[