aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Shared/ShrinkableButton.js6
-rw-r--r--src/web/src/components/System/Info.js6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/web/src/components/Shared/ShrinkableButton.js b/src/web/src/components/Shared/ShrinkableButton.js
index c5a96849..77981953 100644
--- a/src/web/src/components/Shared/ShrinkableButton.js
+++ b/src/web/src/components/Shared/ShrinkableButton.js
@@ -3,13 +3,13 @@ import React from 'react';
import { useMediaQuery } from 'react-responsive';
import { Button, Icon, Popup } from 'semantic-ui-react';
-const ShrinkableButton = ({ iconName, mediaQuery, children, ...rest }) => {
+const ShrinkableButton = ({ icon, mediaQuery, children, ...rest }) => {
const shouldShrink = useMediaQuery({ query: mediaQuery })
if (!shouldShrink) {
return (
<Button {...rest}>
- <Icon name={iconName}/>
+ <Icon name={icon}/>
{children}
</Button>
)
@@ -20,7 +20,7 @@ const ShrinkableButton = ({ iconName, mediaQuery, children, ...rest }) => {
content={children}
trigger={
<Button icon {...rest}>
- <Icon name={iconName}/>
+ <Icon name={icon}/>
</Button>
}
/>
diff --git a/src/web/src/components/System/Info.js b/src/web/src/components/System/Info.js
index 655ac431..8991777b 100644
--- a/src/web/src/components/System/Info.js
+++ b/src/web/src/components/System/Info.js
@@ -22,7 +22,7 @@ const Info = ({ state }) => {
<div className='footer-buttons'>
<div style={{float: 'left'}}>
<ShrinkableButton
- iconName='refresh'
+ icon='refresh'
mediaQuery='(max-width: 516px)'
primary
onClick={() => getVersion({ forceCheck: true })}
@@ -33,7 +33,7 @@ const Info = ({ state }) => {
<Modal
trigger={
<ShrinkableButton
- iconName='shutdown'
+ icon='shutdown'
mediaQuery='(max-width: 516px)'
negative
>
@@ -49,7 +49,7 @@ const Info = ({ state }) => {
<Modal
trigger={
<ShrinkableButton
- iconName='redo'
+ icon='redo'
mediaQuery='(max-width: 516px)'
negative
>