From e4ecb6679db08d6db9d2dd9c62d6be62e19ee16f Mon Sep 17 00:00:00 2001 From: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:39:02 +0100 Subject: [PATCH] Update code comments (#774) * Update code comments * Use "uncomment" --- dashboard/starter-example/app/ui/dashboard/cards.tsx | 2 +- .../starter-example/app/ui/dashboard/latest-invoices.tsx | 2 +- dashboard/starter-example/app/ui/dashboard/revenue-chart.tsx | 4 ++-- dashboard/starter-example/app/ui/invoices/pagination.tsx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboard/starter-example/app/ui/dashboard/cards.tsx b/dashboard/starter-example/app/ui/dashboard/cards.tsx index 0ee0286..526e6f9 100644 --- a/dashboard/starter-example/app/ui/dashboard/cards.tsx +++ b/dashboard/starter-example/app/ui/dashboard/cards.tsx @@ -16,7 +16,7 @@ const iconMap = { export default async function CardWrapper() { return ( <> - {/* NOTE: comment in this code when you get to this point in the course */} + {/* NOTE: Uncomment this code in Chapter 9 */} {/* diff --git a/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx b/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx index 92962ee..4b34f3a 100644 --- a/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx +++ b/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx @@ -14,7 +14,7 @@ export default async function LatestInvoices({ Latest Invoices
- {/* NOTE: comment in this code when you get to this point in the course */} + {/* NOTE: Uncomment this code in Chapter 9 */} {/*
{latestInvoices.map((invoice, i) => { diff --git a/dashboard/starter-example/app/ui/dashboard/revenue-chart.tsx b/dashboard/starter-example/app/ui/dashboard/revenue-chart.tsx index 7ccc409..f19e698 100644 --- a/dashboard/starter-example/app/ui/dashboard/revenue-chart.tsx +++ b/dashboard/starter-example/app/ui/dashboard/revenue-chart.tsx @@ -15,7 +15,7 @@ export default async function RevenueChart({ revenue: Revenue[]; }) { const chartHeight = 350; - // NOTE: comment in this code when you get to this point in the course + // NOTE: Uncomment this code in Chapter 7 // const { yAxisLabels, topLabel } = generateYAxis(revenue); @@ -28,7 +28,7 @@ export default async function RevenueChart({

Recent Revenue

- {/* NOTE: comment in this code when you get to this point in the course */} + {/* NOTE: Uncomment this code in Chapter 7 */} {/*
diff --git a/dashboard/starter-example/app/ui/invoices/pagination.tsx b/dashboard/starter-example/app/ui/invoices/pagination.tsx index 1a29cce..a097560 100644 --- a/dashboard/starter-example/app/ui/invoices/pagination.tsx +++ b/dashboard/starter-example/app/ui/invoices/pagination.tsx @@ -6,13 +6,13 @@ import Link from 'next/link'; import { generatePagination } from '@/app/lib/utils'; export default function Pagination({ totalPages }: { totalPages: number }) { - // NOTE: comment in this code when you get to this point in the course + // NOTE: Uncomment this code in Chapter 7 // const allPages = generatePagination(currentPage, totalPages); return ( <> - {/* NOTE: comment in this code when you get to this point in the course */} + {/* NOTE: Uncomment this code in Chapter 7 */} {/*