diff options
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/components/Shared/ShrinkableButton.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/web/src/components/Shared/ShrinkableButton.js b/src/web/src/components/Shared/ShrinkableButton.js index 2f736ade..67c9f660 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 = ({ icon, mediaQuery, children, ...rest }) => { +const ShrinkableButton = ({ icon, loading, mediaQuery, children, ...rest }) => { const shouldShrink = useMediaQuery({ query: mediaQuery }); if (!shouldShrink) { return ( <Button {...rest}> - <Icon name={icon}/> + <Icon name={icon} loading={loading}/> {children} </Button> ); @@ -20,7 +20,7 @@ const ShrinkableButton = ({ icon, mediaQuery, children, ...rest }) => { content={children} trigger={ <Button icon {...rest}> - <Icon name={icon}/> + <Icon name={icon} loading={loading}/> </Button> } /> |
