From 9a14f5885cac1477249b99025f865fbb983d824d Mon Sep 17 00:00:00 2001 From: Jam Balaya Date: Tue, 10 Dec 2024 15:27:21 +0900 Subject: [PATCH] examples: fix view source pathname at `image-legacy-component` (#73414) ## Description #73344 updates the [image-legacy-component](https://github.com/vercel/next.js/tree/canary/examples/image-legacy-component) example for using the App Router. However, [`ViewSource`](https://github.com/vercel/next.js/blob/canary/examples/image-legacy-component/components/view-source.tsx) component isn't updated. Then I update the pathname. CC: @samcx ### Adding or Updating Examples - [x] The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - [x] Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md Co-authored-by: Sam Ko --- examples/image-legacy-component/app/background/page.tsx | 2 +- examples/image-legacy-component/app/color/page.tsx | 2 +- examples/image-legacy-component/app/layout-fill/page.tsx | 2 +- examples/image-legacy-component/app/layout-fixed/page.tsx | 2 +- examples/image-legacy-component/app/layout-intrinsic/page.tsx | 2 +- examples/image-legacy-component/app/layout-responsive/page.tsx | 2 +- examples/image-legacy-component/app/page.tsx | 2 +- examples/image-legacy-component/app/placeholder/page.tsx | 2 +- examples/image-legacy-component/app/shimmer/page.tsx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/image-legacy-component/app/background/page.tsx b/examples/image-legacy-component/app/background/page.tsx index f0a08df543dfa..4ea722aa9d799 100644 --- a/examples/image-legacy-component/app/background/page.tsx +++ b/examples/image-legacy-component/app/background/page.tsx @@ -5,7 +5,7 @@ import styles from "@/styles/styles.module.css"; export default function Background() { return (
- +
Mountains export default function Color() { return (
- +

Image Component With Color Data URL

Dog - +

Image Component With Layout Fill

- +

Image Component With Layout Fixed

Mountains - +

Image Component With Layout Intrinsic

Mountains - +

Image Component With Layout Responsive

Mountains - +

Image Component with Next.js

diff --git a/examples/image-legacy-component/app/placeholder/page.tsx b/examples/image-legacy-component/app/placeholder/page.tsx index c861a301cb5f0..fd21d94ea4ac8 100644 --- a/examples/image-legacy-component/app/placeholder/page.tsx +++ b/examples/image-legacy-component/app/placeholder/page.tsx @@ -5,7 +5,7 @@ import mountains from "@/public/mountains.jpg"; export default function Placeholder() { return (

- +

Image Component With Placeholder Blur

Mountains export default function Shimmer() { return (
- +

Image Component With Shimmer Data URL