Skip to content

Commit

Permalink
fmt lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysSullivan committed Oct 21, 2024
1 parent d991063 commit 83b225b
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/app/(category-sidebar)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Link } from "@/components/ui/link";
import { db } from "@/db";
import { getCollections } from "@/lib/queries";

export default async function Layout({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { db } from "@/db";
import { ImageResponse } from "next/og";
import { notFound } from "next/navigation";
import { getProductDetails } from "@/lib/queries";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ProductLink } from "@/components/ui/product-card";
import { db } from "@/db";
import Image from "next/image";
import { notFound } from "next/navigation";
import { AddToCartForm } from "@/components/add-to-cart-form";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { db } from "@/db";
import { ImageResponse } from "next/og";
import { notFound } from "next/navigation";
import { getSubcategory } from "@/lib/queries";
Expand Down
1 change: 0 additions & 1 deletion src/app/(category-sidebar)/products/[category]/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Metadata } from "next";
import { db } from "../../../../db";
import { notFound } from "next/navigation";
import { getCategory } from "@/lib/queries";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { db } from "@/db";
import { ImageResponse } from "next/og";
import { notFound } from "next/navigation";
import { getCategory } from "@/lib/queries";
Expand Down
2 changes: 2 additions & 0 deletions src/lib/unstable-cache.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { unstable_cache as next_unstable_cache } from "next/cache";
import { cache } from "react";

// sorry theo but we're using an any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Callback<T> = (...args: any[]) => Promise<T>;

// next_unstable_cache doesn't handle deduplication, so we wrap it in React's cache
Expand Down

0 comments on commit 83b225b

Please sign in to comment.