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

examples: fix view source pathname at image-legacy-component #73414

Merged
merged 2 commits into from
Dec 10, 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 examples/image-legacy-component/app/background/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import styles from "@/styles/styles.module.css";
export default function Background() {
return (
<div>
<ViewSource pathname="pages/background.tsx" />
<ViewSource pathname="app/background/page.tsx" />
<div className={styles.bgWrap}>
<Image
alt="Mountains"
Expand Down
2 changes: 1 addition & 1 deletion examples/image-legacy-component/app/color/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const rgbDataURL = (r: number, g: number, b: number) =>
export default function Color() {
return (
<div>
<ViewSource pathname="pages/color.tsx" />
<ViewSource pathname="app/color/page.tsx" />
<h1>Image Component With Color Data URL</h1>
<Image
alt="Dog"
Expand Down
2 changes: 1 addition & 1 deletion examples/image-legacy-component/app/layout-fill/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ViewSource from "@/components/view-source";
export default function LayoutFill() {
return (
<div>
<ViewSource pathname="pages/layout-fill.tsx" />
<ViewSource pathname="app/layout-fill/page.tsx" />
<h1>Image Component With Layout Fill</h1>
<div style={{ position: "relative", width: "300px", height: "500px" }}>
<Image
Expand Down
2 changes: 1 addition & 1 deletion examples/image-legacy-component/app/layout-fixed/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ViewSource from "@/components/view-source";
export default function LayoutFixed() {
return (
<div>
<ViewSource pathname="pages/layout-fixed.tsx" />
<ViewSource pathname="app/layout-fixed/page.tsx" />
<h1>Image Component With Layout Fixed</h1>
<Image
alt="Mountains"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ViewSource from "@/components/view-source";
export default function LayoutIntrinsic() {
return (
<div>
<ViewSource pathname="pages/layout-intrinsic.tsx" />
<ViewSource pathname="app/layout-intrinsic/page.tsx" />
<h1>Image Component With Layout Intrinsic</h1>
<Image
alt="Mountains"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ViewSource from "@/components/view-source";
export default function LayoutResponsive() {
return (
<div>
<ViewSource pathname="pages/layout-responsive.tsx" />
<ViewSource pathname="app/layout-responsive/page.tsx" />
<h1>Image Component With Layout Responsive</h1>
<Image
alt="Mountains"
Expand Down
2 changes: 1 addition & 1 deletion examples/image-legacy-component/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import styles from "@/styles/styles.module.css";
export default function Home() {
return (
<div className={styles.container}>
<ViewSource pathname="pages/index.tsx" />
<ViewSource pathname="app/page.tsx" />
<div className={styles.card}>
<h1>Image Component with Next.js</h1>
<p>
Expand Down
2 changes: 1 addition & 1 deletion examples/image-legacy-component/app/placeholder/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import mountains from "@/public/mountains.jpg";
export default function Placeholder() {
return (
<div>
<ViewSource pathname="pages/placeholder.tsx" />
<ViewSource pathname="app/placeholder/page.tsx" />
<h1>Image Component With Placeholder Blur</h1>
<Image
alt="Mountains"
Expand Down
2 changes: 1 addition & 1 deletion examples/image-legacy-component/app/shimmer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const toBase64 = (str: string) =>
export default function Shimmer() {
return (
<div>
<ViewSource pathname="pages/shimmer.tsx" />
<ViewSource pathname="app/shimmer/page.tsx" />
<h1>Image Component With Shimmer Data URL</h1>
<Image
alt="Mountains"
Expand Down
Loading