(format)
| 502 | }; |
| 503 | |
| 504 | export const changeDateToMomentFormat = (format) => { |
| 505 | switch (format) { |
| 506 | case "MM/dd/yyyy": |
| 507 | return "L"; |
| 508 | case "dd-MM-yyyy": |
| 509 | return "DD-MM-YYYY"; |
| 510 | case "dd/MM/yyyy": |
| 511 | return "DD/MM/YYYY"; |
| 512 | case "MMMM dd, yyyy": |
| 513 | return "LL"; |
| 514 | case "dd MMM, yyyy": |
| 515 | return "DD MMM, YYYY"; |
| 516 | case "yyyy-MM-dd": |
| 517 | return "YYYY-MM-DD"; |
| 518 | case "MM-dd-yyyy": |
| 519 | return "MM-DD-YYYY"; |
| 520 | case "MM.dd.yyyy": |
| 521 | return "MM.DD.YYYY"; |
| 522 | case "MMM dd, yyyy": |
| 523 | return "MMM DD, YYYY"; |
| 524 | case "dd MMMM, yyyy": |
| 525 | return "DD MMMM, YYYY"; |
| 526 | case "dd.MM.yyyy": |
| 527 | return "DD.MM.YYYY"; |
| 528 | case "dd-MMM-yyyy": |
| 529 | return "DD-MMM-YYYY"; |
| 530 | default: |
| 531 | return "L"; |
| 532 | } |
| 533 | }; |
| 534 | |
| 535 | export const getSignerPages = (xyPosition = [], currentKey, signerId) => { |
| 536 | if (!Array.isArray(xyPosition)) { |
no outgoing calls
no test coverage detected