From 8445c8adc7b54f0fb1f0c496ef29b5f8f1b46bc9 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 7 Dec 2022 18:46:13 +0100 Subject: [PATCH] refactor: use named exports & remove unused files --- .../components/ui/Header/Header.module.scss | 4 ---- .../src/components/ui/Modal/Modal.module.scss | 2 +- .../src/components/ui/NavBar/NavBar.tsx | 2 +- .../src/components/ui/Switch/Switch.tsx | 3 +-- .../CategorySelector/CategorySelector.tsx | 8 +++++++- .../pages/AppStorePage/AppStorePage.tsx | 2 +- .../src/modules/Apps/components/AppActions.tsx | 4 +--- .../modules/Apps/components/AppDetailsTabs.tsx | 4 +--- .../modules/Apps/components/InstallForm.tsx | 4 +--- .../modules/Apps/components/InstallModal.tsx | 6 ++---- .../src/modules/Apps/components/StopModal.tsx | 4 +--- .../modules/Apps/components/UninstallModal.tsx | 4 +--- .../modules/Apps/components/UpdateModal.tsx | 4 +--- .../Apps/components/UpdateSettingsModal.tsx | 6 ++---- .../AppDetailsContainer.tsx | 18 ++++++++---------- .../pages/AppDetailsPage/AppDetailsPage.tsx | 2 +- 16 files changed, 30 insertions(+), 47 deletions(-) delete mode 100644 packages/dashboard/src/components/ui/Header/Header.module.scss diff --git a/packages/dashboard/src/components/ui/Header/Header.module.scss b/packages/dashboard/src/components/ui/Header/Header.module.scss deleted file mode 100644 index 3f2603a4..00000000 --- a/packages/dashboard/src/components/ui/Header/Header.module.scss +++ /dev/null @@ -1,4 +0,0 @@ -.logo { - // filter: hue-rotate(290deg); - // filter: invert(100%); -} diff --git a/packages/dashboard/src/components/ui/Modal/Modal.module.scss b/packages/dashboard/src/components/ui/Modal/Modal.module.scss index 83cf09e0..f2130c89 100644 --- a/packages/dashboard/src/components/ui/Modal/Modal.module.scss +++ b/packages/dashboard/src/components/ui/Modal/Modal.module.scss @@ -1,6 +1,6 @@ @keyframes zoomIn { 0% { - transform: scale(0.7); + transform: scale(0.8); } 50% { transform: scale(1.05); diff --git a/packages/dashboard/src/components/ui/NavBar/NavBar.tsx b/packages/dashboard/src/components/ui/NavBar/NavBar.tsx index 93c983c3..15e91996 100644 --- a/packages/dashboard/src/components/ui/NavBar/NavBar.tsx +++ b/packages/dashboard/src/components/ui/NavBar/NavBar.tsx @@ -38,7 +38,7 @@ export const NavBar: React.FC = () => { {renderItem('App Store', 'app-store', IconBrandAppstore)} {renderItem('Settings', 'settings', IconSettings)} - {isLatest && Update available} + {!isLatest && Update available} ); diff --git a/packages/dashboard/src/components/ui/Switch/Switch.tsx b/packages/dashboard/src/components/ui/Switch/Switch.tsx index baff9135..3a13a9e6 100644 --- a/packages/dashboard/src/components/ui/Switch/Switch.tsx +++ b/packages/dashboard/src/components/ui/Switch/Switch.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import clsx from 'clsx'; interface IProps { label?: string; @@ -11,7 +10,7 @@ interface IProps { } export const Switch = React.forwardRef(({ onChange, onBlur, name, label, checked, className }, ref) => ( -
+
); }; - -export default AppDetailsContainer; diff --git a/packages/dashboard/src/modules/Apps/pages/AppDetailsPage/AppDetailsPage.tsx b/packages/dashboard/src/modules/Apps/pages/AppDetailsPage/AppDetailsPage.tsx index 0bcd072b..6a241800 100644 --- a/packages/dashboard/src/modules/Apps/pages/AppDetailsPage/AppDetailsPage.tsx +++ b/packages/dashboard/src/modules/Apps/pages/AppDetailsPage/AppDetailsPage.tsx @@ -2,7 +2,7 @@ import { NextPage } from 'next'; import React from 'react'; import { Layout } from '../../../../components/Layout'; import { useGetAppQuery } from '../../../../generated/graphql'; -import AppDetailsContainer from '../../containers/AppDetailsContainer/AppDetailsContainer'; +import { AppDetailsContainer } from '../../containers/AppDetailsContainer/AppDetailsContainer'; interface IProps { appId: string;