From 76e9b2558ab9426ca1381f633ca24c554d572b69 Mon Sep 17 00:00:00 2001 From: Ansul Agrawal Date: Mon, 30 Oct 2023 01:09:32 +0530 Subject: [PATCH 1/4] Added Cursor Pointer and Fix Button Import --- .../final-example/app/ui/invoices/create-form.tsx | 12 ++++++------ .../final-example/app/ui/invoices/edit-form.tsx | 14 +++++++------- .../app/ui/invoices/create-form.tsx | 14 +++++++------- .../starter-example/app/ui/invoices/edit-form.tsx | 12 ++++++------ 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/dashboard/final-example/app/ui/invoices/create-form.tsx b/dashboard/final-example/app/ui/invoices/create-form.tsx index 85cc5dc7..ddbde7de 100644 --- a/dashboard/final-example/app/ui/invoices/create-form.tsx +++ b/dashboard/final-example/app/ui/invoices/create-form.tsx @@ -28,7 +28,7 @@ export default function Form({ customers }: { customers: CustomerField[] }) { @@ -78,7 +78,7 @@ export default function EditInvoiceForm({ type="number" 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" + className="peer block cursor-pointer w-full rounded-md border border-gray-200 py-2 pl-10 text-sm outline-2 placeholder:text-gray-500" aria-describedby="amount-error" /> @@ -112,11 +112,11 @@ export default function EditInvoiceForm({ type="radio" value="pending" defaultChecked={invoice.status === 'pending'} - className="h-4 w-4 border-gray-300 bg-gray-100 text-gray-600 focus:ring-2 focus:ring-gray-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-gray-600" + className="h-4 w-4 cursor-pointer border-gray-300 bg-gray-100 text-gray-600 focus:ring-2 focus:ring-gray-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-gray-600" /> @@ -128,11 +128,11 @@ export default function EditInvoiceForm({ type="radio" value="paid" defaultChecked={invoice.status === 'paid'} - className="h-4 w-4 border-gray-300 bg-gray-100 text-gray-600 focus:ring-2 focus:ring-gray-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-gray-600" + className="h-4 w-4 cursor-pointer border-gray-300 bg-gray-100 text-gray-600 focus:ring-2 focus:ring-gray-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-gray-600" /> diff --git a/dashboard/starter-example/app/ui/invoices/create-form.tsx b/dashboard/starter-example/app/ui/invoices/create-form.tsx index 0aed26f8..208187c2 100644 --- a/dashboard/starter-example/app/ui/invoices/create-form.tsx +++ b/dashboard/starter-example/app/ui/invoices/create-form.tsx @@ -8,7 +8,7 @@ import { CurrencyDollarIcon, UserCircleIcon, } from '@heroicons/react/24/outline'; -import { Button } from '../button'; +import { Button } from '@/app/ui/button'; export default function Form({ customers }: { customers: CustomerField[] }) { return ( @@ -23,7 +23,7 @@ export default function Form({ customers }: { customers: CustomerField[] }) {