From dfcad777da36002f9ec6350d7a7a07ebf4a1ada6 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 24 Apr 2021 20:05:19 +0300 Subject: feat!: remove Page loading spinner --- src/containers/Page.tsx | 10 ++-------- src/lib/ServiceList.tsx | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/containers/Page.tsx b/src/containers/Page.tsx index 2d6fd14..f77dbd1 100644 --- a/src/containers/Page.tsx +++ b/src/containers/Page.tsx @@ -7,21 +7,15 @@ interface Props { title?: string; actions?: Action[]; filters?: JSX.Element; - isValidating?: boolean; className?: string; } const style = 'mb-2 flex justify-between md:flex-row md:items-center'; -const Spinner: React.FC = () => <> O; // TODO: replace with spinner - -const Page: React.FC = ({ title, actions, filters, isValidating, className, children }) => ( +const Page: React.FC = ({ title, actions, filters, className, children }) => (
- - {title} - {isValidating && } - + {title}
{filters} {actions?.map(action => ())} diff --git a/src/lib/ServiceList.tsx b/src/lib/ServiceList.tsx index 21b6077..473cb4c 100644 --- a/src/lib/ServiceList.tsx +++ b/src/lib/ServiceList.tsx @@ -37,7 +37,6 @@ const ServiceList: React.FC = () => { return ( -- cgit v1.2.3