diff --git a/client/src/common/components/buttons/AddIconBtn.jsx b/client/src/common/components/buttons/AddIconBtn.jsx index 460f785a6..9133a1a7b 100644 --- a/client/src/common/components/buttons/AddIconBtn.jsx +++ b/client/src/common/components/buttons/AddIconBtn.jsx @@ -2,14 +2,15 @@ import { IconButton } from '@chakra-ui/button'; import { FiPlus } from 'react-icons/fi'; export default function AddIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='blue' - onClick={props.clickHandler} + onClick={clickhandler} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/BlockIconBtn.jsx b/client/src/common/components/buttons/BlockIconBtn.jsx index 9ac6118b7..c463afab3 100644 --- a/client/src/common/components/buttons/BlockIconBtn.jsx +++ b/client/src/common/components/buttons/BlockIconBtn.jsx @@ -2,14 +2,15 @@ import { IconButton } from '@chakra-ui/button'; import { FiMinusCircle } from 'react-icons/fi'; export default function BlockIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='purple' - onClick={props.clickHandler} + onClick={clickhandler} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/CollapseIconBtn.jsx b/client/src/common/components/buttons/CollapseIconBtn.jsx index b44f56412..830e038dd 100644 --- a/client/src/common/components/buttons/CollapseIconBtn.jsx +++ b/client/src/common/components/buttons/CollapseIconBtn.jsx @@ -2,15 +2,16 @@ import { IconButton } from '@chakra-ui/button'; import { FiArrowDownCircle } from 'react-icons/fi'; export default function CollapseIconBtn(props) { + const { clickhandler, active, ...rest } = props; return ( } colorScheme='orange' - variant={props.active ? 'solid' : 'outline'} - onClick={props.clickHandler} + variant={active ? 'solid' : 'outline'} + onClick={clickhandler} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/DelayIconBtn.jsx b/client/src/common/components/buttons/DelayIconBtn.jsx index f63ff3b83..f83880980 100644 --- a/client/src/common/components/buttons/DelayIconBtn.jsx +++ b/client/src/common/components/buttons/DelayIconBtn.jsx @@ -2,14 +2,15 @@ import { IconButton } from '@chakra-ui/button'; import { FiClock } from 'react-icons/fi'; export default function DelayIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='yellow' - onClick={props.clickHandler} + onClick={clickhandler} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/DeleteIconBtn.jsx b/client/src/common/components/buttons/DeleteIconBtn.jsx index 94fb543c9..0e6f18132 100644 --- a/client/src/common/components/buttons/DeleteIconBtn.jsx +++ b/client/src/common/components/buttons/DeleteIconBtn.jsx @@ -2,14 +2,15 @@ import { IconButton } from '@chakra-ui/button'; import { FiMinus } from 'react-icons/fi'; export default function DeleteIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='red' - onClick={props.clickHandler} + onClick={clickhandler} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/NextIconBtn.jsx b/client/src/common/components/buttons/NextIconBtn.jsx index c12cacfa7..983df5ed5 100644 --- a/client/src/common/components/buttons/NextIconBtn.jsx +++ b/client/src/common/components/buttons/NextIconBtn.jsx @@ -2,16 +2,17 @@ import { IconButton } from '@chakra-ui/button'; import { FiSkipForward } from 'react-icons/fi'; export default function NextIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='whiteAlpha' backgroundColor='#ffffff11' variant='outline' - onClick={props.clickHandler} + onClick={clickhandler} width={90} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/PauseIconBtn.jsx b/client/src/common/components/buttons/PauseIconBtn.jsx index 0f841e43b..4c3dff097 100644 --- a/client/src/common/components/buttons/PauseIconBtn.jsx +++ b/client/src/common/components/buttons/PauseIconBtn.jsx @@ -2,15 +2,16 @@ import { IconButton } from '@chakra-ui/button'; import { FiPause } from 'react-icons/fi'; export default function PauseIconBtn(props) { + const { clickhandler, active, ...rest } = props; return ( } colorScheme='orange' - variant={props.active ? 'solid' : 'outline'} - onClick={props.clickHandler} + variant={active ? 'solid' : 'outline'} + onClick={clickhandler} width={120} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/PrevIconBtn.jsx b/client/src/common/components/buttons/PrevIconBtn.jsx index f7aff2a33..a5ac937e1 100644 --- a/client/src/common/components/buttons/PrevIconBtn.jsx +++ b/client/src/common/components/buttons/PrevIconBtn.jsx @@ -2,16 +2,17 @@ import { IconButton } from '@chakra-ui/button'; import { FiSkipBack } from 'react-icons/fi'; export default function PrevIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='whiteAlpha' backgroundColor='#ffffff11' variant='outline' - onClick={props.clickHandler} + onClick={clickhandler} width={90} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/ReloadIconBtn.jsx b/client/src/common/components/buttons/ReloadIconBtn.jsx index c590af16d..4eec731e1 100644 --- a/client/src/common/components/buttons/ReloadIconBtn.jsx +++ b/client/src/common/components/buttons/ReloadIconBtn.jsx @@ -2,16 +2,17 @@ import { IconButton } from '@chakra-ui/button'; import { FiRefreshCcw } from 'react-icons/fi'; export default function ReloadIconButton(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='whiteAlpha' backgroundColor='#ffffff05' variant='outline' - onClick={props.clickHandler} + onClick={clickhandler} width={90} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/RollIconBtn.jsx b/client/src/common/components/buttons/RollIconBtn.jsx index 122611fe7..f34b935c2 100644 --- a/client/src/common/components/buttons/RollIconBtn.jsx +++ b/client/src/common/components/buttons/RollIconBtn.jsx @@ -2,15 +2,16 @@ import { IconButton } from '@chakra-ui/button'; import { FiClock } from 'react-icons/fi'; export default function RollIconBtn(props) { + const { clickhandler, active, ...rest } = props; return ( } colorScheme='blue' - variant={props.active ? 'solid' : 'outline'} - onClick={props.clickHandler} + variant={active ? 'solid' : 'outline'} + onClick={clickhandler} width={120} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} disabled /> ); diff --git a/client/src/common/components/buttons/SettingsIconBtn.jsx b/client/src/common/components/buttons/SettingsIconBtn.jsx index 77aeb4801..2fd8e538d 100644 --- a/client/src/common/components/buttons/SettingsIconBtn.jsx +++ b/client/src/common/components/buttons/SettingsIconBtn.jsx @@ -2,15 +2,16 @@ import { IconButton } from '@chakra-ui/button'; import { FiSettings } from 'react-icons/fi'; export default function SettingsIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } isRound variant='outline' - onClick={props.clickHandler} + onClick={clickhandler} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/StartIconBtn.jsx b/client/src/common/components/buttons/StartIconBtn.jsx index 785b283f0..06b9bbd80 100644 --- a/client/src/common/components/buttons/StartIconBtn.jsx +++ b/client/src/common/components/buttons/StartIconBtn.jsx @@ -2,15 +2,16 @@ import { IconButton } from '@chakra-ui/button'; import { FiPlay } from 'react-icons/fi'; export default function StartIconBtn(props) { + const { clickhandler, active, ...rest } = props; return ( } colorScheme='green' - variant={props.active ? 'solid' : 'outline'} - onClick={props.clickHandler} + variant={active ? 'solid' : 'outline'} + onClick={clickhandler} width={120} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/UnloadIconBtn.jsx b/client/src/common/components/buttons/UnloadIconBtn.jsx index 30560c051..631f4b9e8 100644 --- a/client/src/common/components/buttons/UnloadIconBtn.jsx +++ b/client/src/common/components/buttons/UnloadIconBtn.jsx @@ -2,16 +2,17 @@ import { IconButton } from '@chakra-ui/button'; import { FiCornerLeftUp } from 'react-icons/fi'; export default function UnloadIconBtn(props) { + const { clickhandler, ...rest } = props; return ( } colorScheme='whiteAlpha' backgroundColor='#ffffff05' variant='outline' - onClick={props.clickHandler} + onClick={clickhandler} width={90} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/common/components/buttons/VisibleIconBtn.jsx b/client/src/common/components/buttons/VisibleIconBtn.jsx index 775bc2e6b..db06c8e34 100644 --- a/client/src/common/components/buttons/VisibleIconBtn.jsx +++ b/client/src/common/components/buttons/VisibleIconBtn.jsx @@ -2,15 +2,16 @@ import { IconButton } from '@chakra-ui/button'; import { FiSun } from 'react-icons/fi'; export default function VisibleIconBtn(props) { + const { clickhandler, active, ...rest } = props; return ( } colorScheme='blue' - variant={props.active ? 'solid' : 'outline'} - onClick={props.clickHandler} + variant={active ? 'solid' : 'outline'} + onClick={clickhandler} _focus={{ boxShadow: 'none' }} - {...props} + {...rest} /> ); } diff --git a/client/src/features/control/MessageControl.jsx b/client/src/features/control/MessageControl.jsx index 615543808..4a95d6b12 100644 --- a/client/src/features/control/MessageControl.jsx +++ b/client/src/features/control/MessageControl.jsx @@ -93,8 +93,8 @@ export default function MessageControl() { messageControl('toggle-pres-visible')} + active={pres.visible || undefined} + clickhandler={() => messageControl('toggle-pres-visible')} {...inputProps} /> @@ -113,8 +113,8 @@ export default function MessageControl() { messageControl('toggle-publ-visible')} + active={publ.visible || undefined} + clickhandler={() => messageControl('toggle-publ-visible')} {...inputProps} /> @@ -134,8 +134,8 @@ export default function MessageControl() { messageControl('toggle-lower-visible')} + active={lower.visible || undefined} + clickhandler={() => messageControl('toggle-lower-visible')} {...inputProps} /> diff --git a/client/src/features/control/PlaybackControl.jsx b/client/src/features/control/PlaybackControl.jsx index 19cf24bb4..5e7eaf3f8 100644 --- a/client/src/features/control/PlaybackControl.jsx +++ b/client/src/features/control/PlaybackControl.jsx @@ -115,28 +115,28 @@ export default function PlaybackControl() {
playbackControl('start')} + clickhandler={() => playbackControl('start')} disabled={!selectedId} /> playbackControl('pause')} + clickhandler={() => playbackControl('pause')} disabled={!selectedId} /> playbackControl('roll')} + clickhandler={() => playbackControl('roll')} />
- playbackControl('previous')} /> - playbackControl('next')} /> + playbackControl('previous')} /> + playbackControl('next')} /> playbackControl('unload')} + clickhandler={() => playbackControl('unload')} disabled={!selectedId} /> playbackControl('reload')} + clickhandler={() => playbackControl('reload')} disabled={!selectedId} />
diff --git a/client/src/features/editors/Editor.jsx b/client/src/features/editors/Editor.jsx index 373a69da9..543eb49a9 100644 --- a/client/src/features/editors/Editor.jsx +++ b/client/src/features/editors/Editor.jsx @@ -71,7 +71,7 @@ export default function Editor() { paddingTop: '3em', }} > - +
- +
- +
diff --git a/client/src/features/editors/list/EventBlock.jsx b/client/src/features/editors/list/EventBlock.jsx index 9b481ec57..853af31e4 100644 --- a/client/src/features/editors/list/EventBlock.jsx +++ b/client/src/features/editors/list/EventBlock.jsx @@ -113,10 +113,10 @@ export default function EventBlock(props) {
setVisible(!visible)} - active={visible} + clickhandler={() => setVisible(!visible)} + active={visible || undefined} /> - + Download CSV - +
); }