Skip to content

Commit 0e2b3d9

Browse files
authored
fix: add displayName (#200)
* fix: add displayName * add FC
1 parent f733762 commit 0e2b3d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DialogWrap.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { IDialogPropTypes } from './IDialogPropTypes';
1212
* So here should add a child (div element) to custom container.
1313
* */
1414

15-
export default (props: IDialogPropTypes) => {
15+
const DialogWrap: React.FC<IDialogPropTypes> = (props: IDialogPropTypes) => {
1616
const { visible, getContainer, forceRender } = props;
1717
// 渲染在当前 dom 里;
1818
if (getContainer === false) {
@@ -30,3 +30,7 @@ export default (props: IDialogPropTypes) => {
3030
</Portal>
3131
);
3232
};
33+
34+
DialogWrap.displayName = 'Dialog';
35+
36+
export default DialogWrap;

0 commit comments

Comments
 (0)