Remplacement de Redux/Saga par Apollo

This commit is contained in:
2020-07-21 22:25:39 +02:00
parent 8708e30020
commit c4373cce46
33 changed files with 230 additions and 728 deletions

View File

@ -0,0 +1,22 @@
import React, { Fragment, PropsWithChildren, FunctionComponent } from 'react';
export interface WithLoaderProps {
loading?: boolean
}
export const WithLoader: FunctionComponent<WithLoaderProps> = ({ loading, children }) => {
return (
<Fragment>
{
loading ?
<div className="loader-container">
<div className="lds-ripple">
<div></div>
<div></div>
</div>
</div> :
children
}
</Fragment>
)
}