Skip to content

Commit e4ecb66

Browse files
Update code comments (#774)
* Update code comments * Use "uncomment"
1 parent bab4ed6 commit e4ecb66

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dashboard/starter-example/app/ui/dashboard/cards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const iconMap = {
1616
export default async function CardWrapper() {
1717
return (
1818
<>
19-
{/* NOTE: comment in this code when you get to this point in the course */}
19+
{/* NOTE: Uncomment this code in Chapter 9 */}
2020

2121
{/* <Card title="Collected" value={totalPaidInvoices} type="collected" />
2222
<Card title="Pending" value={totalPendingInvoices} type="pending" />

dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default async function LatestInvoices({
1414
Latest Invoices
1515
</h2>
1616
<div className="flex grow flex-col justify-between rounded-xl bg-gray-50 p-4">
17-
{/* NOTE: comment in this code when you get to this point in the course */}
17+
{/* NOTE: Uncomment this code in Chapter 9 */}
1818

1919
{/* <div className="bg-white px-6">
2020
{latestInvoices.map((invoice, i) => {

dashboard/starter-example/app/ui/dashboard/revenue-chart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default async function RevenueChart({
1515
revenue: Revenue[];
1616
}) {
1717
const chartHeight = 350;
18-
// NOTE: comment in this code when you get to this point in the course
18+
// NOTE: Uncomment this code in Chapter 7
1919

2020
// const { yAxisLabels, topLabel } = generateYAxis(revenue);
2121

@@ -28,7 +28,7 @@ export default async function RevenueChart({
2828
<h2 className={`${lusitana.className} mb-4 text-xl md:text-2xl`}>
2929
Recent Revenue
3030
</h2>
31-
{/* NOTE: comment in this code when you get to this point in the course */}
31+
{/* NOTE: Uncomment this code in Chapter 7 */}
3232

3333
{/* <div className="rounded-xl bg-gray-50 p-4">
3434
<div className="sm:grid-cols-13 mt-0 grid grid-cols-12 items-end gap-2 rounded-md bg-white p-4 md:gap-4">

dashboard/starter-example/app/ui/invoices/pagination.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import Link from 'next/link';
66
import { generatePagination } from '@/app/lib/utils';
77

88
export default function Pagination({ totalPages }: { totalPages: number }) {
9-
// NOTE: comment in this code when you get to this point in the course
9+
// NOTE: Uncomment this code in Chapter 7
1010

1111
// const allPages = generatePagination(currentPage, totalPages);
1212

1313
return (
1414
<>
15-
{/* NOTE: comment in this code when you get to this point in the course */}
15+
{/* NOTE: Uncomment this code in Chapter 7 */}
1616

1717
{/* <div className="inline-flex">
1818
<PaginationArrow

0 commit comments

Comments
 (0)