diff --git a/src/Components/MyFormInputs/index.js b/src/Components/MyFormInputs/index.js
index aa7d80b..f00fba3 100644
--- a/src/Components/MyFormInputs/index.js
+++ b/src/Components/MyFormInputs/index.js
@@ -1,4 +1,4 @@
-import { Form, Input, InputNumber } from "antd";
+import { Form, Input, InputNumber, Skeleton } from "antd";
import { Constants, myFetch } from "../../utils";
import { useRef } from "react";
import { useTranslation } from "react-i18next";
@@ -221,6 +221,7 @@ export function MyFormInput({
inputPlaceholder,
inputType,
inputNotRequired,
+ showSkeleton,
}) {
const commonProps = {
...propsInput,
@@ -254,12 +255,18 @@ export function MyFormInput({
}
const inputComponents = {
- textarea: (
+ textarea: showSkeleton ? (
+
+ ) : (
),
number: ,
password: ,
- default: ,
+ default: showSkeleton ? (
+
+ ) : (
+
+ ),
};
return (
diff --git a/src/Pages/Store/Settings/index.js b/src/Pages/Store/Settings/index.js
index 54bc81c..eefef57 100644
--- a/src/Pages/Store/Settings/index.js
+++ b/src/Pages/Store/Settings/index.js
@@ -19,7 +19,7 @@ export default function StoreSettings() {
const [isRequesting, setIsRequesting] = useState(true);
const [requestState, setRequestState] = useState(RequestState.INIT);
- //const [storeData, setStoreData] = useState({});
+
const delayTimeout = useRef();
const companyName = Form.useWatch("companyName", form);
@@ -35,8 +35,6 @@ export default function StoreSettings() {
t: t,
})
.then((data) => {
- // setStoreData(data.store);
-
form.setFieldsValue({
companyName: data.store.name,
phoneNumber: data.store.phone_number,
@@ -98,7 +96,6 @@ export default function StoreSettings() {