Skip to content

Commit

Permalink
Merge pull request #2082 from kids-first/2080-remove-banner
Browse files Browse the repository at this point in the history
remove beta banner and beta superscript in the explore data button
  • Loading branch information
Jeremy Costanza authored Sep 23, 2019
2 parents daf608a + c7c3e31 commit 450f779
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 33 deletions.
28 changes: 7 additions & 21 deletions src/components/CohortBuilder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import SqonBuilder from './SqonBuilder';
import SQONProvider from './SQONProvider';
import VirtualStudiesMenu from './VirtualStudiesMenu';
import ParticipantIcon from 'icons/ParticipantIcon';
import PromptMessage from 'uikit/PromptMessage';

const Container = styled('div')`
width: 100%;
Expand All @@ -42,10 +41,6 @@ const Content = styled(ContentBar)`
margin-top: 0;
`;

const StylePromptMessage = styled(PromptMessage)`
width: 100%;
`;

const CohortBuilder = compose(
withApi,
withTheme,
Expand Down Expand Up @@ -116,28 +111,19 @@ const CohortBuilder = compose(

return (
<Container>
<StylePromptMessage
content={
<div>
<strong>BETA RELEASE: </strong>Use the cohort builder to create virtual studies. You
can query participant variables including demographic, clinical, and data
categories. It's in progress, so you may experience some bugs. To give feedback,
click the button in the bottom right corner. All feedback is welcome!
</div>
}
/>

<VirtualStudiesMenu />

<FullWidthWhite>
<Content>
<Categories sqon={executableSqon} onSqonUpdate={categoriesSqonUpdate} />
</Content>
<SqonBuilderContainer css={`
.sqonView {
margin-right: 60px;
}
`}>
<SqonBuilderContainer
css={`
.sqonView {
margin-right: 60px;
}
`}
>
<SqonBuilder
syntheticSqons={syntheticSqons}
activeSqonIndex={activeSqonIndex}
Expand Down
14 changes: 2 additions & 12 deletions src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ const ExploreDataIconStyled = styled(ExploreDataIcon)`
fill: currentColor;
`;

const BetaNavLink = styled(NavLink)`
&:after {
content: 'beta';
vertical-align: super;
font-size: 9px;
text-transform: uppercase;
padding-left: 3px;
}
`;

const Header = ({
state: { loggedInUser },
effects: { setUser, setToken, clearIntegrationTokens },
Expand Down Expand Up @@ -82,9 +72,9 @@ const Header = ({
</NavLink>
</li>
<li>
<BetaNavLink currentPathName={currentPathName} to={COHORT_BUILDER_PATH}>
<NavLink currentPathName={currentPathName} to={COHORT_BUILDER_PATH}>
<ExploreDataIconStyled /> <Trans>Explore Data</Trans>
</BetaNavLink>
</NavLink>
</li>
<li>
<NavLink currentPathName={currentPathName} to={`/search/file`}>
Expand Down

0 comments on commit 450f779

Please sign in to comment.