add isShown prop
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user