diff options
author | eug-vs <eug-vs@keemail.me> | 2021-04-24 20:05:19 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-04-24 20:05:19 +0300 |
commit | dfcad777da36002f9ec6350d7a7a07ebf4a1ada6 (patch) | |
tree | 25725292cc4e5915b60cd6e277bf27c83e5e715d /src | |
parent | ea5c69e11b2758df28f881f9110ca5d4a5d41211 (diff) | |
download | commercel-ui-dfcad777da36002f9ec6350d7a7a07ebf4a1ada6.tar.gz |
feat!: remove Page loading spinner
Diffstat (limited to 'src')
-rw-r--r-- | src/containers/Page.tsx | 10 | ||||
-rw-r--r-- | src/lib/ServiceList.tsx | 1 |
2 files changed, 2 insertions, 9 deletions
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<Props> = ({ title, actions, filters, isValidating, className, children }) => ( +const Page: React.FC<Props> = ({ title, actions, filters, className, children }) => ( <Paper className="xl:m-5 overflow-x-auto"> <div className={`${style} flex-col items-start`}> - <span className="text-2xl font-bold"> - {title} - {isValidating && <Spinner />} - </span> + <span className="text-2xl font-bold">{title}</span> <div className="flex"> {filters} {actions?.map(action => (<Button {...action} key={action.name} size="sm">{action.name}</Button>))} 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 ( <Page title={service.name} - isValidating={isValidating} actions={actions} filters={filters} > |