restore text of Invoke button

This commit is contained in:
Mary Hipp 2023-09-20 13:07:42 -04:00
parent f7f0630d97
commit b2fe24c401
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
import { memo } from 'react'; import { memo } from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { FaPlus } from 'react-icons/fa';
import { useQueueBack } from '../hooks/useQueueBack'; import { useQueueBack } from '../hooks/useQueueBack';
import EnqueueButtonTooltip from './QueueButtonTooltip'; import EnqueueButtonTooltip from './QueueButtonTooltip';
import QueueButton from './common/QueueButton'; import QueueButton from './common/QueueButton';
@ -18,12 +17,11 @@ const QueueBackButton = ({ asIconButton, sx }: Props) => {
<QueueButton <QueueButton
asIconButton={asIconButton} asIconButton={asIconButton}
colorScheme="accent" colorScheme="accent"
label={t('queue.queueBack')} label={t('parameters.invoke.invoke')}
isDisabled={isDisabled} isDisabled={isDisabled}
isLoading={isLoading} isLoading={isLoading}
onClick={queueBack} onClick={queueBack}
tooltip={<EnqueueButtonTooltip />} tooltip={<EnqueueButtonTooltip />}
icon={<FaPlus />}
sx={sx} sx={sx}
/> />
); );

View File

@ -6,7 +6,7 @@ import { ReactElement, ReactNode, memo } from 'react';
type Props = { type Props = {
label: string; label: string;
tooltip: ReactNode; tooltip: ReactNode;
icon: ReactElement; icon?: ReactElement;
onClick?: () => void; onClick?: () => void;
isDisabled?: boolean; isDisabled?: boolean;
colorScheme: ThemeTypings['colorSchemes']; colorScheme: ThemeTypings['colorSchemes'];