diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-05-22 21:24:27 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-05-22 21:24:27 -0500 |
| commit | 1bbc4bc3ccbc3fee328ee8fcc2931318dd10e12b (patch) | |
| tree | a9eafd281eca04599e2dcd21b7076c3fc864fb1e | |
| parent | 3403ed4ab1624cefb2217ad1c03e4a90ff70c3f5 (diff) | |
| download | slskd-1bbc4bc3ccbc3fee328ee8fcc2931318dd10e12b.tar.gz | |
change ShrinkableButton iconName to icon
| -rw-r--r-- | src/web/src/components/Shared/ShrinkableButton.js | 6 | ||||
| -rw-r--r-- | src/web/src/components/System/Info.js | 6 |
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 > |
