From ffcce6233e5b631f732f90e470bdf98731291d4c Mon Sep 17 00:00:00 2001 From: Jethary Date: Thu, 14 Mar 2024 09:34:12 -0400 Subject: [PATCH] add snackbar to paramters --- app/src/assets/localization/en/protocol_details.json | 1 + app/src/pages/ProtocolDetails/Parameters.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/assets/localization/en/protocol_details.json b/app/src/assets/localization/en/protocol_details.json index fba0d5381182..0ca3c115448e 100644 --- a/app/src/assets/localization/en/protocol_details.json +++ b/app/src/assets/localization/en/protocol_details.json @@ -60,6 +60,7 @@ "sending": "Sending", "show_in_folder": "Show in folder", "slot": "Slot {{slotName}}", + "start_setup_to_customize": "Start setup to customize values", "start_setup": "Start setup", "successfully_sent": "Successfully sent", "total_volume": "total volume", diff --git a/app/src/pages/ProtocolDetails/Parameters.tsx b/app/src/pages/ProtocolDetails/Parameters.tsx index 932879d253cc..4838c226bdce 100644 --- a/app/src/pages/ProtocolDetails/Parameters.tsx +++ b/app/src/pages/ProtocolDetails/Parameters.tsx @@ -10,6 +10,7 @@ import { WRAP, } from '@opentrons/components' import { StyledText } from '../../atoms/text' +import { useToaster } from '../../organisms/ToasterOven' import { useRequiredProtocolHardware } from '../Protocols/hooks' import { EmptySection } from './EmptySection' @@ -51,12 +52,16 @@ export const Parameters = (props: { protocolId: string }): JSX.Element => { const { requiredProtocolHardware } = useRequiredProtocolHardware( props.protocolId ) + const { makeSnackbar } = useToaster() const { t, i18n } = useTranslation('protocol_details') + const makeSnack = (): void => { + makeSnackbar(t('start_setup_to_customize')) + } return requiredProtocolHardware.length === 0 ? ( ) : ( - +