Improve feeling when switching tab

This commit is contained in:
Anthony Laibe 2018-10-03 15:56:19 +01:00 committed by Pascal Precht
parent c52c0abb77
commit 921c99b201
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 4 additions and 4 deletions

View File

@ -9,14 +9,14 @@ const DataWrapper = ({error, loading, shouldRender, render, ...rest}) => {
return <Error error={error} />; return <Error error={error} />;
} }
if (loading) {
return <Loading />;
}
if (shouldRender) { if (shouldRender) {
return render(rest); return render(rest);
} }
if (loading) {
return <Loading />;
}
return <React.Fragment />; return <React.Fragment />;
}; };