From ce65d448c92fbfb9e28e7e3c1e6b8b34a6795b94 Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Fri, 16 Sep 2022 14:53:13 +0200 Subject: [PATCH] Fix Category missing key + Fix button cannot be inside button --- src/Components/Category/Category.tsx | 12 ++++++------ src/Components/Sidebar/Sidebar.tsx | 11 +++++++---- test-server/http.js | 1 + 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/Components/Category/Category.tsx b/src/Components/Category/Category.tsx index 2de579d..2b30935 100644 --- a/src/Components/Category/Category.tsx +++ b/src/Components/Category/Category.tsx @@ -12,8 +12,8 @@ export function Category(props: ICategoryProps): JSX.Element { if (isOpen) { return ( - + ); } return ( - + ); } diff --git a/src/Components/Sidebar/Sidebar.tsx b/src/Components/Sidebar/Sidebar.tsx index da22551..3c36de5 100644 --- a/src/Components/Sidebar/Sidebar.tsx +++ b/src/Components/Sidebar/Sidebar.tsx @@ -1,4 +1,3 @@ -import { ChevronRightIcon } from '@heroicons/react/outline'; import * as React from 'react'; import { IAvailableContainer } from '../../Interfaces/IAvailableContainer'; import { TruncateString } from '../../utils/stringtools'; @@ -23,9 +22,10 @@ export function Sidebar(props: ISidebarProps): JSX.Element { return; } - const componentButton = (