Skip to content

Commit

Permalink
fix(protocol-designer) remove hardcoded pd version from release notes…
Browse files Browse the repository at this point in the history
… modal (#17121)

* fix(protocol-designer) remove hardcoded pd version from release notes modal
  • Loading branch information
koji authored Dec 16, 2024
1 parent 4446eaf commit e236cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocol-designer/src/assets/localization/en/modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"body6": "All protocols require {{app}} version <strong>7.3.0 or later</strong> to run."
},
"redesign": {
"body1": "Welcome to Protocol Designer 8.2.0!",
"body1": "Welcome to Protocol Designer {{version}}!",
"body2": "We’re excited to release the new Opentrons Protocol Designer, now with a fresh redesign! Enjoy the same functionality with the added ability to:",
"body3": "Add multiple Heater-Shaker Modules and Magnetic Blocks to the deck (Flex only).",
"body4": "All protocols now require Opentrons App version <strong>8.2.0+</strong> to run.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const OPENTRONS_PD = 'Opentrons Protocol Designer'

export const useAnnouncements = (): Announcement[] => {
const { t } = useTranslation('modal')
const pdVersion = process.env.OT_PD_VERSION

return [
{
Expand Down Expand Up @@ -307,7 +308,7 @@ export const useAnnouncements = (): Announcement[] => {
{
announcementKey: 'redesign8.2',
image: <Flex />,
heading: t('announcements.redesign.body1'),
heading: t('announcements.redesign.body1', { version: pdVersion }),
message: (
<Flex gridGap={SPACING.spacing8} flexDirection={DIRECTION_COLUMN}>
<StyledText desktopStyle="bodyDefaultRegular">
Expand Down

0 comments on commit e236cb6

Please sign in to comment.