fix: stu test fixes

- QR code url was hardcoded
- fix language in add menus
- changed release symbol
- changed order of release and reload
This commit is contained in:
cv
2021-10-25 22:19:02 +02:00
parent 23ef4ce155
commit 5a87668fac
7 changed files with 12 additions and 12 deletions
@@ -1,11 +1,11 @@
import { IconButton } from '@chakra-ui/button'; import { IconButton } from '@chakra-ui/button';
import { FiCornerLeftUp } from 'react-icons/fi'; import { FiXOctagon } from 'react-icons/fi';
export default function UnloadIconBtn(props) { export default function UnloadIconBtn(props) {
const { clickhandler, ...rest } = props; const { clickhandler, ...rest } = props;
return ( return (
<IconButton <IconButton
icon={<FiCornerLeftUp />} icon={<FiXOctagon />}
colorScheme='whiteAlpha' colorScheme='whiteAlpha'
backgroundColor='#ffffff05' backgroundColor='#ffffff05'
variant='outline' variant='outline'
@@ -41,11 +41,11 @@ const Transport = ({ selectedId, playbackControl }) => {
<div className={style.playbackContainer}> <div className={style.playbackContainer}>
<PrevIconBtn clickhandler={() => playbackControl('previous')} /> <PrevIconBtn clickhandler={() => playbackControl('previous')} />
<NextIconBtn clickhandler={() => playbackControl('next')} /> <NextIconBtn clickhandler={() => playbackControl('next')} />
<UnloadIconBtn clickhandler={() => playbackControl('unload')} />
<ReloadIconButton <ReloadIconButton
clickhandler={() => playbackControl('reload')} clickhandler={() => playbackControl('reload')}
disabled={!selectedId} disabled={!selectedId}
/> />
<UnloadIconBtn clickhandler={() => playbackControl('unload')} />
</div> </div>
); );
}; };
@@ -28,7 +28,7 @@ export default function ActionButtons(props) {
onClick={() => actionHandler('event')} onClick={() => actionHandler('event')}
isDisabled={!showAdd} isDisabled={!showAdd}
> >
Event next Add Event after
</MenuItem> </MenuItem>
<MenuItem <MenuItem
@@ -36,14 +36,14 @@ export default function ActionButtons(props) {
onClick={() => actionHandler('delay')} onClick={() => actionHandler('delay')}
isDisabled={!showDelay} isDisabled={!showDelay}
> >
Delay next Add Delay after
</MenuItem> </MenuItem>
<MenuItem <MenuItem
icon={<FiMinusCircle />} icon={<FiMinusCircle />}
onClick={() => actionHandler('block')} onClick={() => actionHandler('block')}
isDisabled={!showBlock} isDisabled={!showBlock}
> >
Block next Add Block after
</MenuItem> </MenuItem>
</MenuList> </MenuList>
</Menu> </Menu>
@@ -24,16 +24,16 @@ export default function MenuActionButtons(props) {
/> />
<MenuList style={menuStyle}> <MenuList style={menuStyle}>
<MenuItem icon={<FiPlus />} onClick={() => actionHandler('event')}> <MenuItem icon={<FiPlus />} onClick={() => actionHandler('event')}>
Event first Add Event first
</MenuItem> </MenuItem>
<MenuItem icon={<FiClock />} onClick={() => actionHandler('delay')}> <MenuItem icon={<FiClock />} onClick={() => actionHandler('delay')}>
Delay first Add Delay first
</MenuItem> </MenuItem>
<MenuItem <MenuItem
icon={<FiMinusCircle />} icon={<FiMinusCircle />}
onClick={() => actionHandler('block')} onClick={() => actionHandler('block')}
> >
Block first Add Block first
</MenuItem> </MenuItem>
<Divider /> <Divider />
<MenuItem <MenuItem
@@ -142,7 +142,7 @@ export default function StageManager(props) {
<div className={style.qr}> <div className={style.qr}>
{general.url != null && general.url !== '' && ( {general.url != null && general.url !== '' && (
<QRCode <QRCode
value='www.carlosvalente.com' value={general.url}
size={window.innerWidth / 12} size={window.innerWidth / 12}
level='L' level='L'
/> />
+1 -1
View File
@@ -109,7 +109,7 @@ export default function Public(props) {
<div className={style.qr}> <div className={style.qr}>
{general.url != null && general.url !== '' && ( {general.url != null && general.url !== '' && (
<QRCode <QRCode
value='www.carlosvalente.com' value={general.url}
size={window.innerWidth / 12} size={window.innerWidth / 12}
level='L' level='L'
/> />
@@ -87,7 +87,7 @@ export default function Pip(props) {
<div className={style.qr}> <div className={style.qr}>
{general.url != null && general.url !== '' && ( {general.url != null && general.url !== '' && (
<QRCode <QRCode
value='www.carlosvalente.com' value={general.url}
size={window.innerWidth / 12} size={window.innerWidth / 12}
level='L' level='L'
/> />