add isShown prop
This commit is contained in:
@@ -11,7 +11,8 @@ export const DeepLinkingLink = ({ isDeepLinkingEnabled, path, text }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
DeepLinkingLink.propTypes = {
|
DeepLinkingLink.propTypes = {
|
||||||
isDeepLinkingEnabled: PropTypes.boolean,
|
isDeepLinkingEnabled: PropTypes.bool,
|
||||||
|
isShown: PropTypes.bool,
|
||||||
path: PropTypes.string,
|
path: PropTypes.string,
|
||||||
text: PropTypes.string
|
text: PropTypes.string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,8 @@ export default class Operation extends PureComponent {
|
|||||||
<span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } >
|
<span className={ deprecated ? "opblock-summary-path__deprecated" : "opblock-summary-path" } >
|
||||||
<DeepLinkingLink
|
<DeepLinkingLink
|
||||||
isDeepLinkingEnabled={isDeepLinkingEnabled}
|
isDeepLinkingEnabled={isDeepLinkingEnabled}
|
||||||
path={isShownKey.join("/")}
|
isShown={isShown}
|
||||||
|
path={`${isShownKey.join("/")}`}
|
||||||
text={path} />
|
text={path} />
|
||||||
<JumpToPath path={jumpToKey} />
|
<JumpToPath path={jumpToKey} />
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ export default class Operations extends React.Component {
|
|||||||
id={isShownKey.join("-")}>
|
id={isShownKey.join("-")}>
|
||||||
<DeepLinkingLink
|
<DeepLinkingLink
|
||||||
isDeepLinkingEnabled={isDeepLinkingEnabled}
|
isDeepLinkingEnabled={isDeepLinkingEnabled}
|
||||||
|
isShown={showTag}
|
||||||
path={tag}
|
path={tag}
|
||||||
text={tag} />
|
text={tag} />
|
||||||
{ !tagDescription ? null :
|
{ !tagDescription ? null :
|
||||||
|
|||||||
Reference in New Issue
Block a user