-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mccalluc/previews to resources (#2121)
* "Previews" -> "Resources" * changelog * menus in sync! * remove menuListId... does anything break? * Gratuitous factor out * comment out publications until they are ready * Helper component for fold down menus: state is internal * fix tests... with a hack
- Loading branch information
Showing
11 changed files
with
72 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Change "Previews" menu to "Resources". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
context/app/static/js/components/Header/AtlasToolsLinks/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import AtlasToolsLinks from './AtlasToolsLinks'; | ||
|
||
export default AtlasToolsLinks; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
context/app/static/js/components/Header/PreviewLinks/index.js
This file was deleted.
Oops, something went wrong.
15 changes: 10 additions & 5 deletions
15
...ents/Header/PreviewLinks/PreviewLinks.jsx → ...ts/Header/ResourceLinks/ResourceLinks.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import DropdownLink from '../DropdownLink'; | ||
// import { StyledDivider } from '../HeaderContent/style'; | ||
|
||
function PreviewLinks(props) { | ||
function ResourceLinks(props) { | ||
const { isIndented } = props; | ||
return ( | ||
<> | ||
{/* <DropdownLink href="/publication" isIndented={isIndented}> | ||
Publications | ||
</DropdownLink> | ||
<StyledDivider /> */} | ||
{['Multimodal Molecular Imaging Data', 'Cell Type Annotations'].map((previewName) => ( | ||
<DropdownLink | ||
key={previewName} | ||
href={`/preview/${previewName.toLowerCase().replace(/\W+/g, '-')}`} | ||
isIndented={isIndented} | ||
> | ||
{previewName} | ||
Preview: {previewName} | ||
</DropdownLink> | ||
))} | ||
</> | ||
); | ||
} | ||
|
||
PreviewLinks.propTypes = { | ||
ResourceLinks.propTypes = { | ||
isIndented: PropTypes.bool, | ||
}; | ||
|
||
PreviewLinks.defaultProps = { | ||
ResourceLinks.defaultProps = { | ||
isIndented: false, | ||
}; | ||
|
||
export default React.memo(PreviewLinks); | ||
export default React.memo(ResourceLinks); |
3 changes: 3 additions & 0 deletions
3
context/app/static/js/components/Header/ResourceLinks/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ResourceLinks from './ResourceLinks'; | ||
|
||
export default ResourceLinks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters