Skip to content

Commit

Permalink
fix(email component): fixed issues in Email component
Browse files Browse the repository at this point in the history
destructure the props and use it
remove `FC` and directly use the EmailProps
change `EmailPropType` to `EmailProps`

Signed-off-by: Niloy Sikdar <[email protected]>
  • Loading branch information
niloysikdar committed Jun 18, 2022
1 parent a1aafce commit 08162bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Email/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FC, ReactNode } from 'react';
import { ReactNode } from 'react';

interface EmailPropType {
interface EmailProps {
children?: ReactNode;
}

export const Email: FC<EmailPropType> = (props) => {
return <div>{props.children}</div>;
export const Email = ({ children }: EmailProps) => {
return <div>{children}</div>;
};

0 comments on commit 08162bd

Please sign in to comment.