-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function Layout({ children }) { | ||
return ( | ||
<html> | ||
<body>{children}</body> | ||
</html> | ||
) | ||
} |
22 changes: 22 additions & 0 deletions
22
test/e2e/app-dir/not-found/css-precedence/app/not-found.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use client' | ||
|
||
import { Button } from '../components/button/button' | ||
import { useRouter } from 'next/navigation' | ||
|
||
function NotFound() { | ||
const router = useRouter() | ||
return ( | ||
<div> | ||
<h1>404 - Page Not Found</h1> | ||
<Button | ||
onClick={() => { | ||
router.push('/') | ||
}} | ||
> | ||
Home | ||
</Button> | ||
</div> | ||
) | ||
} | ||
|
||
export default NotFound |
2 changes: 1 addition & 1 deletion
2
...d/css-precedence/app/navigate-404/page.js → ...-dir/not-found/css-precedence/app/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters