From f797855474f554dfa7ff7b856bfd623e839d33ea Mon Sep 17 00:00:00 2001 From: Terje Karlsen Date: Tue, 1 Aug 2023 13:47:56 +0200 Subject: [PATCH] =?UTF-8?q?Fjerner=20un=C3=B8dig=20key=20i=20listelement?= =?UTF-8?q?=20som=20ikke=20aksepteres=20som=20prop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/komponenter/footer/common/Lenker.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/komponenter/footer/common/Lenker.tsx b/src/komponenter/footer/common/Lenker.tsx index 822002838..04c0597ec 100644 --- a/src/komponenter/footer/common/Lenker.tsx +++ b/src/komponenter/footer/common/Lenker.tsx @@ -23,7 +23,6 @@ const getLang = (url: string) => { type ListElementProps = { wrap: boolean; - key?: React.Key; children: JSX.Element; }; type ListWrapperProps = { @@ -39,9 +38,9 @@ const ListWrapper = ({ className, wrap, elements }: ListWrapperProps): JSX.Eleme return <>{elements}; }; -const ListElement = ({ wrap, key, children }: ListElementProps) => { +const ListElement = ({ wrap, children }: ListElementProps) => { if (wrap) { - return
  • {children}
  • ; + return
  • {children}
  • ; } return children; };