diff --git a/src/InputGroup/InputGroupAddon.js b/src/InputGroup/InputGroupAddon.js
index 32af98507..a84898f98 100644
--- a/src/InputGroup/InputGroupAddon.js
+++ b/src/InputGroup/InputGroupAddon.js
@@ -8,26 +8,32 @@ import withStyles from '../utils/WithStyles/WithStyles';
const InputGroupAddon = ({
addon,
+ compact,
+ actions,
+ glyph,
addonClassNames,
children,
className,
disableStyles,
+ inputType,
+ numberDownCallback,
+ numberUpCallback,
localizedText,
numberDownButtonProps,
numberUpButtonProps,
onClick,
- ...props
+ ...otherProps
}) => {
let returnObject = addon;
- if (props.actions) {
+ if (actions) {
returnObject = children;
- } else if (props.glyph) {
+ } else if (glyph) {
returnObject = (
);
}
@@ -35,37 +41,36 @@ const InputGroupAddon = ({
const addonClasses = classnames(
addonClassNames,
'fd-input-group__addon',
- [{ 'fd-input-group__addon--button': !!props.actions || props.inputType === 'number' }],
- [{ 'fd-input-group__addon--button--compact': props.compact }],
+ [{ 'fd-input-group__addon--button': !!actions || inputType === 'number' }],
+ [{ 'fd-input-group__addon--button--compact': compact }],
);
-
- if (props.inputType === 'number') {
+ if (inputType === 'number') {
return (
-
+
);
} else {
return (
-
+
{returnObject}
);
diff --git a/src/InputGroup/__snapshots__/InputGroup.test.js.snap b/src/InputGroup/__snapshots__/InputGroup.test.js.snap
index fca332f3e..c748c0086 100644
--- a/src/InputGroup/__snapshots__/InputGroup.test.js.snap
+++ b/src/InputGroup/__snapshots__/InputGroup.test.js.snap
@@ -6,9 +6,6 @@ exports[` create input group items 1`] = `
>
$
@@ -33,9 +30,6 @@ exports[` create input group items 2`] = `
/>
€
@@ -48,10 +42,6 @@ exports[` create input group items 3`] = `
>
$
@@ -76,10 +66,6 @@ exports[` create input group items 4`] = `
/>
€
@@ -146,10 +132,6 @@ exports[` create input group items 7`] = `
>
create input group items 8`] = `
>
create input group items 9`] = `
/>
create input group items 10`] = `
/>
create input group items 11`] = `
value="1234567890"
/>
create input group items 12`] = `
value="1234567890"
/>
create input group items 13`] = `
className="fd-input-group"
>
create input group items 15`] = `
>
$
@@ -375,9 +327,6 @@ exports[` create input group items 16`] = `
/>
€