From 32607c93c9cd986c1c3ba9eb0c2b4955c233a6e7 Mon Sep 17 00:00:00 2001 From: Stephanie Dietz <49788645+StephDietz@users.noreply.github.com> Date: Thu, 16 Nov 2023 09:22:40 -0600 Subject: [PATCH] Edits based on feedback (#410) * remove Link component from page. This will be added later * re-add the Link component. Turns out is was supposed to be there * replace flex-grow with the new utility grow * issue: https://github.com/vercel/next-learn/pull/415 * Add missing step --------- Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> Co-authored-by: Delba de Oliveira --- dashboard/final-example/app/dashboard/layout.tsx | 2 +- dashboard/final-example/app/ui/invoices/edit-form.tsx | 1 + dashboard/starter-example/app/ui/invoices/edit-form.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/final-example/app/dashboard/layout.tsx b/dashboard/final-example/app/dashboard/layout.tsx index 024d269..8fbc323 100644 --- a/dashboard/final-example/app/dashboard/layout.tsx +++ b/dashboard/final-example/app/dashboard/layout.tsx @@ -6,7 +6,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
-
{children}
+
{children}
); } diff --git a/dashboard/final-example/app/ui/invoices/edit-form.tsx b/dashboard/final-example/app/ui/invoices/edit-form.tsx index d39da4c..d11f739 100644 --- a/dashboard/final-example/app/ui/invoices/edit-form.tsx +++ b/dashboard/final-example/app/ui/invoices/edit-form.tsx @@ -73,6 +73,7 @@ export default function EditInvoiceForm({ name="amount" type="number" defaultValue={invoice.amount} + step="0.01" placeholder="Enter USD amount" className="peer block w-full rounded-md border border-gray-200 py-2 pl-10 text-sm outline-2 placeholder:text-gray-500" aria-describedby="amount-error" diff --git a/dashboard/starter-example/app/ui/invoices/edit-form.tsx b/dashboard/starter-example/app/ui/invoices/edit-form.tsx index 7100dd2..8238cb6 100644 --- a/dashboard/starter-example/app/ui/invoices/edit-form.tsx +++ b/dashboard/starter-example/app/ui/invoices/edit-form.tsx @@ -56,6 +56,7 @@ export default function EditInvoiceForm({ id="amount" name="amount" type="number" + step="0.01" defaultValue={invoice.amount} placeholder="Enter USD amount" className="peer block w-full rounded-md border border-gray-200 py-2 pl-10 text-sm outline-2 placeholder:text-gray-500"