-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
Description
Related to #86.
It would be handy to combine the definition of props to transfer with propTypes
. Currently it's white-listed aside like here in Button
:
const propsToTransfer = transferProps(
props,
['afterLabel', 'beforeLabel', 'block', 'clickHandler', 'disabled', 'endCorner', 'grouped', 'id',
'label', 'labelVisibility', 'loadingIcon', 'priority', 'size', 'startCorner', 'type', 'variant'],
);
Code could be also more DRY and easier to write and maintain then.