rsnext/examples/with-mongodb-mongoose/pages/_app.tsx
Elijah Ohiwerei 7e76c353b3
feat(examples): Migrate 'with-mongoose' example to TypeScript with total type safety (#53603)
### What?
I kindly request the maintainers to review this Pull Request, which aims to migrate the `with-mongoose` example to TypeScript with total type safety.

### Why?
By doing so, we enhance the overall quality and maintainability of the example, aligning it with modern best practices for type-safe codebases.

### How?
I have thoroughly tested the changes to ensure they do not introduce regressions and maintain compatibility with the existing codebase.



Co-authored-by: Balázs Orbán <18369201+balazsorban44@users.noreply.github.com>
2023-09-01 14:34:13 +00:00

33 lines
754 B
TypeScript

import '../css/style.css'
import '../css/form.css'
import Head from 'next/head'
import Link from 'next/link'
import type { AppProps } from 'next/app'
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<Head>
<title>Pet Care App</title>
</Head>
<div className="top-bar">
<div className="nav">
<Link href="/">Home</Link>
<Link href="/new">Add Pet</Link>
</div>
<img
id="title"
src="https://upload.wikimedia.org/wikipedia/commons/1/1f/Pet_logo_with_flowers.png"
alt="pet care logo"
></img>
</div>
<div className="wrapper grid">
<Component {...pageProps} />
</div>
</>
)
}
export default MyApp