Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Aug 15, 2023
1 parent 923b904 commit 7b73a6d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
5 changes: 0 additions & 5 deletions test/e2e/app-dir/not-found/css-precedence/app/404/page.js

This file was deleted.

7 changes: 7 additions & 0 deletions test/e2e/app-dir/not-found/css-precedence/app/layout.js
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 test/e2e/app-dir/not-found/css-precedence/app/not-found.js
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { useRouter } from 'next/navigation'
import { Button } from '../../../../app-css/components/button/button'
import { Button } from '../components/button/button'

export default function Page() {
const router = useRouter()
Expand Down

0 comments on commit 7b73a6d

Please sign in to comment.