Skip to content

Commit

Permalink
Update prop types, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeinhardt committed May 18, 2022
1 parent e10f8b5 commit 0430293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PropsWithChildren } from "react";
import type { ReactNode } from "react";

export type Props = PropsWithChildren<never>;
export type Props = { children: ReactNode };

function Header({ children }: Props) {
return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PropsWithChildren } from "react";
import type { ReactNode } from "react";

export type Props = PropsWithChildren<never>;
export type Props = { children: ReactNode };

function Main({ children }: Props) {
return <main className="mb-2 px-4 py-2">{children}</main>;
Expand Down

0 comments on commit 0430293

Please sign in to comment.