next-learn
next-learn copied to clipboard
Apply a concrete type to the props of the InvoiceStatus component
Hello
I was studying through next learn and came across the InvoiceStatus component.
It takes a status prop and I saw that it is defined as a string type. I'm using the status prop to handle conditional statements, but I think it would be better if it was declared as a concrete type.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-learn-starter | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 23, 2024 5:48am |
| next-seo-starter | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 23, 2024 5:48am |
@mg5566 is attempting to deploy a commit to the Vercel Team on Vercel.
A member of the Team first needs to authorize it.
Hey! Thank you for the suggestion. I am okay with leaving it as is. But feel free to keep your version this way!