Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code comments #774

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dashboard/starter-example/app/ui/dashboard/cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 */}

{/* <Card title="Collected" value={totalPaidInvoices} type="collected" />
<Card title="Pending" value={totalPendingInvoices} type="pending" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function LatestInvoices({
Latest Invoices
</h2>
<div className="flex grow flex-col justify-between rounded-xl bg-gray-50 p-4">
{/* NOTE: comment in this code when you get to this point in the course */}
{/* NOTE: Uncomment this code in Chapter 9 */}

{/* <div className="bg-white px-6">
{latestInvoices.map((invoice, i) => {
Expand Down
4 changes: 2 additions & 2 deletions dashboard/starter-example/app/ui/dashboard/revenue-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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

{/* <div className="rounded-xl bg-gray-50 p-4">
<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">
Expand Down
4 changes: 2 additions & 2 deletions dashboard/starter-example/app/ui/invoices/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 */}

{/* <div className="inline-flex">
<PaginationArrow
Expand Down
Loading