mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 07:56:12 +02:00
refact: standardize PropsWithChildren
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import React from "react"
|
||||
import React, { PropsWithChildren} from "react"
|
||||
import * as SC from "./styles"
|
||||
|
||||
interface ContainerProps {
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
const Container = ({ children, ...restProps }: ContainerProps): JSX.Element => (
|
||||
const Container = ({ children, ...restProps }: PropsWithChildren<{}>): JSX.Element => (
|
||||
<SC.ContainerWrapper {...restProps}>{children}</SC.ContainerWrapper>
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user