Skip to content

Commit

Permalink
fix: type error on Container component
Browse files Browse the repository at this point in the history
Type error: Property "children" does not exist on type "{}"

fix #414
  • Loading branch information
mateusfg7 committed Dec 10, 2022
1 parent 84ee757 commit fbec0c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import React from 'react'
import React, { ReactNode } from 'react'

export const Container: React.FC = ({ children }) => {
interface Props {
children: ReactNode
}

export const Container = ({ children }: Props) => {
return <div className="max-w-4xl p-5 m-auto">{children}</div>
}

1 comment on commit fbec0c3

@vercel
Copy link

@vercel vercel bot commented on fbec0c3 Dec 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mfg-b – ./

mfg-b.vercel.app
mfg-b-git-main-mateusfg7.vercel.app
mfg-b-mateusfg7.vercel.app

Please sign in to comment.