From a5b3cd97d037a1a4d7bf62e68d6b94d3fd149175 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 26 May 2022 19:08:07 -0500 Subject: add loading prop --- src/web/src/components/Shared/ShrinkableButton.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/web') 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 ( ); @@ -20,7 +20,7 @@ const ShrinkableButton = ({ icon, mediaQuery, children, ...rest }) => { content={children} trigger={ } /> -- cgit v1.2.3