+ Protocol Designer BETA now supports Temperature and Magnetic modules. +
+ ++ Note: Protocols with modules{' '} + may require an app and robot update to run. You will + need to have the OT-2 app and robot on the latest versions ( + 3.17 and higher). +
+ > + ), + }, +] diff --git a/protocol-designer/src/components/modals/AnnouncementModal/index.js b/protocol-designer/src/components/modals/AnnouncementModal/index.js new file mode 100644 index 00000000000..3bb3924e5ea --- /dev/null +++ b/protocol-designer/src/components/modals/AnnouncementModal/index.js @@ -0,0 +1,61 @@ +// @flow + +import React, { useState } from 'react' +import cx from 'classnames' +import { Modal, OutlineButton } from '@opentrons/components' +import { i18n } from '../../../localization' +import { + setLocalStorageItem, + getLocalStorageItem, + localStorageAnnouncementKey, +} from '../../../persist' +import modalStyles from '../modal.css' +import { announcements } from './announcements' +import styles from './AnnouncementModal.css' + +export const AnnouncementModal = () => { + const { announcementKey, message, heading, image } = announcements[ + announcements.length - 1 + ] + + const userHasNotSeenAnnouncement = + getLocalStorageItem(localStorageAnnouncementKey) !== announcementKey + + const [showAnnouncementModal, setShowAnnouncementModal] = useState