mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This PR is similar to PR #46460, but applies the patch to all our codemods.
17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
// @ts-nocheck
|
|
/* eslint-disable */
|
|
const Image = require("next/legacy/image");
|
|
const Named = require("next/legacy/image");
|
|
const Foo = require("foo");
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div>
|
|
<h1>Upgrade</h1>
|
|
<Image src="/test.jpg" width="200" height="300" layout="fixed" />
|
|
<Named src="/test.png" width="400" height="500" layout="fixed" />
|
|
<Foo />
|
|
</div>
|
|
);
|
|
}
|