diff --git a/dashboard/final-example/app/lib/data.ts b/dashboard/final-example/app/lib/data.ts index 028716db..6b052e5d 100644 --- a/dashboard/final-example/app/lib/data.ts +++ b/dashboard/final-example/app/lib/data.ts @@ -229,7 +229,7 @@ export async function fetchFilteredCustomers(query: string) { export async function getUser(email: string) { try { - const user = await sql`SELECT * from USERS where email=${email}`; + const user = await sql`SELECT * FROM users WHERE email=${email}`; return user.rows[0] as User; } catch (error) { console.error('Failed to fetch user:', error); diff --git a/dashboard/final-example/app/page.tsx b/dashboard/final-example/app/page.tsx index 08327bfb..6f4d9e06 100644 --- a/dashboard/final-example/app/page.tsx +++ b/dashboard/final-example/app/page.tsx @@ -34,7 +34,7 @@ export default function Page() { src="/hero-desktop.png" width={1000} height={760} - alt="Screenshots of the dashboard project showing desktop and mobile versions" + alt="Screenshots of the dashboard project showing desktop version" className="hidden md:block" /> @@ -103,11 +103,11 @@ export default function Form({ customers }: { customers: CustomerField[] }) { name="status" type="radio" value="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" /> @@ -118,11 +118,11 @@ export default function Form({ customers }: { customers: CustomerField[] }) { name="status" type="radio" value="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/final-example/app/ui/invoices/edit-form.tsx b/dashboard/final-example/app/ui/invoices/edit-form.tsx index 1855ded8..d2647f73 100644 --- a/dashboard/final-example/app/ui/invoices/edit-form.tsx +++ b/dashboard/final-example/app/ui/invoices/edit-form.tsx @@ -35,7 +35,7 @@ export default function EditInvoiceForm({