diff --git a/src/components/dashboard/ClientsGraph.js b/src/components/dashboard/ClientsGraph.js
index f6f1921..7f2518f 100644
--- a/src/components/dashboard/ClientsGraph.js
+++ b/src/components/dashboard/ClientsGraph.js
@@ -192,7 +192,7 @@ export const transformData = data => {
*
* @returns {*} the loading props
*/
-export const loadingState = () => ({
+export const loadingProps = () => ({
loading: true,
labels: [],
datasets: []
@@ -207,11 +207,11 @@ export default props => (
interval: 10 * 60 * 1000
}}
renderInitial={() => (
-
+
)}
renderOk={data => (
)}
- renderErr={() => }
+ renderErr={() => }
/>
);
diff --git a/src/components/dashboard/ClientsGraph.test.js b/src/components/dashboard/ClientsGraph.test.js
index e6aa970..0d26146 100644
--- a/src/components/dashboard/ClientsGraph.test.js
+++ b/src/components/dashboard/ClientsGraph.test.js
@@ -13,7 +13,7 @@ import { shallow } from "enzyme";
import {
TranslatedClientsGraph,
transformData,
- loadingState
+ loadingProps
} from "./ClientsGraph";
const fakeData = {
@@ -39,14 +39,14 @@ const fakeData = {
};
it("shows loading indicator correctly", () => {
- const wrapper = shallow();
+ const wrapper = shallow();
expect(wrapper.children(".card-img-overlay")).toExist();
});
it("hides loading indicator correctly", async () => {
const wrapper = shallow(
-
+
);
expect(wrapper.children(".card-img-overlay")).not.toExist();