ubk.erp.webpack 1.2.6 → 1.2.7
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 +10 -0
- package/dist/Layout/Library/IssueReturn.d.ts +1 -4
- package/dist/index.cjs +10 -10
- package/dist/index.js +4189 -4183
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -289,8 +289,17 @@ Each object in the returned array represents one returned book:
|
|
|
289
289
|
|
|
290
290
|
```jsx
|
|
291
291
|
import { IssueReturn } from "ubk.erp.webpack";
|
|
292
|
+
import { useRef } from "react";
|
|
292
293
|
|
|
293
294
|
const LibraryPage = ({ token }) => {
|
|
295
|
+
|
|
296
|
+
const issueReturnRef = useRef(null);
|
|
297
|
+
|
|
298
|
+
// Reload pay later
|
|
299
|
+
const handleReloadPayLater = () => {
|
|
300
|
+
issueReturnRef.current?.reloadPayLater();
|
|
301
|
+
};
|
|
302
|
+
|
|
294
303
|
const handleIssueReturn = (returnArray) => {
|
|
295
304
|
// Example returnArray:
|
|
296
305
|
const example = [
|
|
@@ -307,6 +316,7 @@ const LibraryPage = ({ token }) => {
|
|
|
307
316
|
<IssueReturn
|
|
308
317
|
token={token}
|
|
309
318
|
onReturn={handleIssueReturn}
|
|
319
|
+
ref={issueReturnRef}
|
|
310
320
|
/>
|
|
311
321
|
);
|
|
312
322
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export default IssueReturn;
|
|
3
|
-
declare
|
|
4
|
-
token: any;
|
|
5
|
-
onReturn: any;
|
|
6
|
-
}): React.JSX.Element;
|
|
3
|
+
declare const IssueReturn: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|