Skip to content

Commit

Permalink
remove beta tag from PD
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Jul 28, 2023
1 parent 3071ef8 commit 592a8e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
9 changes: 3 additions & 6 deletions protocol-designer/src/containers/ConnectedTitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ function TitleWithIcon(props: TitleWithIconProps): JSX.Element {
)
}

interface TitleWithBetaTagProps {
interface TitleProps {
text: string | null | undefined
}

const TitleWithBetaTag = (props: TitleWithBetaTagProps): JSX.Element => (
const Title = (props: TitleProps): JSX.Element => (

Check warning on line 58 in protocol-designer/src/containers/ConnectedTitleBar.tsx

View check run for this annotation

Codecov / codecov/patch

protocol-designer/src/containers/ConnectedTitleBar.tsx#L58

Added line #L58 was not covered by tests
<div className={styles.title_wrapper}>
<div className={styles.icon_inline_text}>{props.text}</div>
<div className={styles.beta_tag}>{i18n.t('application.beta')}</div>
</div>
)

Expand Down Expand Up @@ -98,9 +97,7 @@ function mapStateToProps(state: BaseState): SP {
case 'settings-app':
return {
_page,
title: (
<TitleWithBetaTag text={i18n.t([`nav.title.${_page}`, fileName])} />
),
title: <Title text={i18n.t([`nav.title.${_page}`, fileName])} />,
subtitle: i18n.t([`nav.subtitle.${_page}`, '']),
}
case 'steplist':
Expand Down
11 changes: 0 additions & 11 deletions protocol-designer/src/containers/TitleBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,3 @@
display: flex;
align-items: center;
}

.beta_tag {
font-size: 1rem;
font-weight: 500;
margin-left: 0.75rem;
padding: 0.4rem 0.5rem;
color: var(--c-font-light);
background-color: var(--c-med-gray);
letter-spacing: 0.5px;
border-radius: 0.3125rem;
}
1 change: 0 additions & 1 deletion protocol-designer/src/localization/en/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"rpm": "rpm"
},
"version": "Protocol Designer Version",
"beta": "beta",
"networking": {
"generic_verification_failure": "Something went wrong with your unique link. Fill out the form below to have a new one sent to your email. Please contact the Opentrons Support team if you require further help.",
"unauthorized_verification_failure": "This unique link has expired and is no longer valid, to have a new link sent to your email, fill out the form below.",
Expand Down

0 comments on commit 592a8e9

Please sign in to comment.