Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob committed Oct 21, 2024
1 parent 3d6ea24 commit bb901ce
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
14 changes: 6 additions & 8 deletions dashboard/final-example/app/dashboard/customers/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ export const metadata: Metadata = {
title: 'Customers',
};

export default async function Page(
props: {
searchParams?: Promise<{
query?: string;
page?: string;
}>;
}
) {
export default async function Page(props: {
searchParams?: Promise<{
query?: string;
page?: string;
}>;
}) {
const searchParams = await props.searchParams;
const query = searchParams?.query || '';

Expand Down
14 changes: 6 additions & 8 deletions dashboard/final-example/app/dashboard/invoices/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ export const metadata: Metadata = {
title: 'Invoices',
};

export default async function Page(
props: {
searchParams?: Promise<{
query?: string;
page?: string;
}>;
}
) {
export default async function Page(props: {
searchParams?: Promise<{
query?: string;
page?: string;
}>;
}) {
const searchParams = await props.searchParams;
const query = searchParams?.query || '';
const currentPage = Number(searchParams?.page) || 1;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/starter-example/app/ui/skeletons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function RevenueChartSkeleton() {
<div className={`${shimmer} relative w-full overflow-hidden md:col-span-4`}>
<div className="mb-4 h-8 w-36 rounded-md bg-gray-100" />
<div className="rounded-xl bg-gray-100 p-4">
<div className="mt-0 grid h-[410px] grid-cols-12 items-end gap-2 rounded-md bg-white p-4 sm:grid-cols-13 md:gap-4" />
<div className="sm:grid-cols-13 mt-0 grid h-[410px] grid-cols-12 items-end gap-2 rounded-md bg-white p-4 md:gap-4" />
<div className="flex items-center pb-2 pt-6">
<div className="h-5 w-5 rounded-full bg-gray-200" />
<div className="ml-2 h-4 w-20 rounded-md bg-gray-200" />
Expand Down

0 comments on commit bb901ce

Please sign in to comment.