add isShown prop

This commit is contained in:
Greg Thompson
2017-12-04 14:14:28 -06:00
parent 0b8cd7e32f
commit 661b60fade
3 changed files with 5 additions and 2 deletions

View File

@@ -11,7 +11,8 @@ export const DeepLinkingLink = ({ isDeepLinkingEnabled, path, text }) => {
)
}
DeepLinkingLink.propTypes = {
isDeepLinkingEnabled: PropTypes.boolean,
isDeepLinkingEnabled: PropTypes.bool,
isShown: PropTypes.bool,
path: PropTypes.string,
text: PropTypes.string
}

View File

@@ -119,7 +119,8 @@ export default class Operation extends PureComponent {
<span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } >
<DeepLinkingLink
isDeepLinkingEnabled={isDeepLinkingEnabled}
path={isShownKey.join("/")}
isShown={isShown}
path={`${isShownKey.join("/")}`}
text={path} />
<JumpToPath path={jumpToKey} />
</span>

View File

@@ -75,6 +75,7 @@ export default class Operations extends React.Component {
id={isShownKey.join("-")}>
<DeepLinkingLink
isDeepLinkingEnabled={isDeepLinkingEnabled}
isShown={showTag}
path={tag}
text={tag} />
{ !tagDescription ? null :