From 01a86bdd7acb50dee8e4d0a69ca4cc6e24b12303 Mon Sep 17 00:00:00 2001 From: Dion Date: Mon, 11 Dec 2023 18:34:50 +0100 Subject: [PATCH] code smells --- starsky/starsky/clientapp/package.json | 2 +- .../color-class-filter/color-class-filter.tsx | 2 +- .../color-class-select/color-class-select.tsx | 2 +- .../menu-inline-search/menu-inline-search.tsx | 4 +- .../shared/go-to-parent-folder.tsx | 25 +--- .../src/contexts/archive-context.tsx | 135 +++++++++++------- .../src/contexts/detailview-context.tsx | 125 +++++++++------- .../starsky/clientapp/src/shared/url-path.ts | 11 +- .../clientapp/src/style/css/03-button.css | 22 --- .../style/css/03-button.danger-warning.css | 23 +++ .../clientapp/src/style/css/10-menu.css | 4 + .../src/style/css/26-colorfilter.css | 6 +- .../src/style/css/34-search-header.css | 4 - .../src/client/css/29-switch-button.css | 10 +- 14 files changed, 217 insertions(+), 158 deletions(-) create mode 100644 starsky/starsky/clientapp/src/style/css/03-button.danger-warning.css diff --git a/starsky/starsky/clientapp/package.json b/starsky/starsky/clientapp/package.json index d7048916dd..02ad098a5a 100644 --- a/starsky/starsky/clientapp/package.json +++ b/starsky/starsky/clientapp/package.json @@ -169,7 +169,7 @@ "@typescript-eslint/ban-types": "warn", "no-case-declarations": "warn", "react/display-name": "off", - "react/prop-types": "warn", + "react/prop-types": "off", "@typescript-eslint/no-loss-of-precision": "warn", "react/react-in-jsx-scope": "off" }, diff --git a/starsky/starsky/clientapp/src/components/molecules/color-class-filter/color-class-filter.tsx b/starsky/starsky/clientapp/src/components/molecules/color-class-filter/color-class-filter.tsx index b6c46359fb..0063d89c3b 100644 --- a/starsky/starsky/clientapp/src/components/molecules/color-class-filter/color-class-filter.tsx +++ b/starsky/starsky/clientapp/src/components/molecules/color-class-filter/color-class-filter.tsx @@ -160,7 +160,7 @@ const ColorClassFilter: React.FunctionComponent = memo( : "btn colorclass colorclass--" + item } > -