@bigbinary/neeto-approvals-frontend 0.3.11 → 0.4.0-beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,7 +55,7 @@ The package exports three components: `Approvals`, `Form`, and `Public`.
55
55
  ### Installation
56
56
  1. `neeto-approvals-nano` has a few peer dependencies that are required for the proper functioning of the package. Install all the peer dependencies using the below command:
57
57
  ```zsh
58
- yarn add @bigbinary/neeto-icons@1.8.46 @bigbinary/neetoui@4.1.33 axios@1.2.1 classnames@2.3.2 formik@2.2.9 ramda@0.28.0 react-router-dom@5.3.3 react-toastify@8.2.0 react-query@3.39.2 yup@0.32.11
58
+ yarn add @bigbinary/neeto-icons@1.8.46 @bigbinary/neetoui@4.1.33 axios@1.2.1 classnames@2.3.2 formik@2.2.9 ramda@0.28.0 react-router-dom@5.3.3 react-toastify@8.2.0 @tanstack/react-query@5.40.0 @tanstack/react-query-devtools@5.40.0 yup@0.32.11
59
59
  ```
60
60
 
61
61
  2. Now install the latest `neeto-approvals-nano` package using the below command:
@@ -130,7 +130,7 @@ import React from "react";
130
130
  import { Form } from "@bigbinary/neeto-approvals-frontend";
131
131
 
132
132
  const RequestApproval = () => {
133
- const { mutate: createRequest, isLoading } = useCreateRequest();
133
+ const { mutate: createRequest, isPending } = useCreateRequest();
134
134
 
135
135
  const onSubmit = (request, template, onClose) => {
136
136
  createRequest(
@@ -148,7 +148,7 @@ const RequestApproval = () => {
148
148
 
149
149
  return (
150
150
  <Form
151
- isLoading={isLoading}
151
+ isLoading={isPending}
152
152
  isOpen={isNewApprovalRequestPaneOpen}
153
153
  setIsPaneOpen={setIsNewApprovalRequestPaneOpen}
154
154
  requestableId={requestableId} // Specify the ID of the requestable associated entity