diff --git a/note.md b/note.md new file mode 100644 index 0000000..ad03ddf --- /dev/null +++ b/note.md @@ -0,0 +1,567 @@ + + +
+ Manage and track all transport requests efficiently. +
+| + {col.title} + | + {:else} ++ {col.title} + | + {/if} + {/each} +|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| + {row[col.key as keyof Transport]} + | + {:else if col.key === "requested_date"} ++ {row[col.key as keyof Transport] + ? new Date( + row[ + col.key as keyof Transport + ] as string | number | Date, + ).toLocaleDateString() + : "N/A"} + | + {:else if col.key === "pickup_date"} ++ {new Date( + new Date( + row[col.key as keyof Transport] as + | string + | number + | Date, + ).toLocaleDateString() || "N/A", + ).toLocaleDateString()} + | + {:else if col.key === "created_at"} ++ {row[col.key as keyof Transport] + ? new Date( + row[ + col.key as keyof Transport + ] as string | number | Date, + ).toLocaleDateString() + : "N/A"} + | + {:else if col.key === "area"} ++ {row[col.key as keyof Transport]} + | + {:else if col.key === "request_things"} ++ {row[col.key as keyof Transport]} + | + {:else if col.key === "additional_notes"} ++ {row[col.key as keyof Transport] || + "No additional notes"} + | + {:else if col.key === "requested_by"} ++ {row[col.key as keyof Transport]} + | + {:else if col.key === "vendor_email_address"} ++ {row[col.key as keyof TransportDisplay] || + "No email provided"} + | + {:else if col.key === "actions"} ++ + + | + {:else} ++ {row[col.key as keyof TransportDisplay]} + | + {/if} + {/each} +