aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-26 19:08:07 -0500
committerJP Dillingham <jp@dillingham.me>2022-05-26 19:08:07 -0500
commita5b3cd97d037a1a4d7bf62e68d6b94d3fd149175 (patch)
tree472f0008333bd695f3efd6ef6830ce5f44079311
parent89b75c295de97096a6c5dbef8d9b93f28d2a1767 (diff)
downloadslskd-a5b3cd97d037a1a4d7bf62e68d6b94d3fd149175.tar.gz
add loading prop
-rw-r--r--src/web/src/components/Shared/ShrinkableButton.js6
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>
}
/>