Skip to content

Commit

Permalink
fix: add displayName (#200)
Browse files Browse the repository at this point in the history
* fix: add displayName

* add FC
  • Loading branch information
xrkffgg committed Sep 2, 2020
1 parent f733762 commit 0e2b3d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DialogWrap.tsx
Expand Up @@ -12,7 +12,7 @@ import { IDialogPropTypes } from './IDialogPropTypes';
* So here should add a child (div element) to custom container.
* */

export default (props: IDialogPropTypes) => {
const DialogWrap: React.FC<IDialogPropTypes> = (props: IDialogPropTypes) => {
const { visible, getContainer, forceRender } = props;
// 渲染在当前 dom 里;
if (getContainer === false) {
Expand All @@ -30,3 +30,7 @@ export default (props: IDialogPropTypes) => {
</Portal>
);
};

DialogWrap.displayName = 'Dialog';

export default DialogWrap;

1 comment on commit 0e2b3d9

@vercel
Copy link

@vercel vercel bot commented on 0e2b3d9 Sep 2, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.