Cleanup static methods (#1678)

This commit is contained in:
Jaco Greeff 2019-09-28 08:58:58 +02:00 committed by GitHub
parent febd191882
commit 14067296ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,10 +286,7 @@ class InputAddress extends React.PureComponent<Props, State> {
}
}
(InputAddress as unknown as ExportedType).createOption = createItem;
(InputAddress as unknown as ExportedType).setLastValue = setLastValue;
export default withMulti(
const ExportedComponent = withMulti(
styled(InputAddress)`
.ui.dropdown .text {
width: 100%;
@ -329,3 +326,8 @@ export default withMulti(
}, {})
})
) as ExportedType;
ExportedComponent.createOption = createItem;
ExportedComponent.setLastValue = setLastValue;
export default ExportedComponent;