feat(operation-summary): move JumpToPath component after collapse/expand icons (#9230)
The goal if to have collapse/expand icon always in the extreme right possition. Refs #9111
This commit is contained in:
committed by
GitHub
parent
273bc835cb
commit
c2c6ba60b1
@@ -95,6 +95,7 @@ export default class OperationSummary extends PureComponent {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
<JumpToPath path={specPath} />{/* TODO: use wrapComponents here, swagger-ui doesn't care about jumpToPath */}
|
||||||
<button
|
<button
|
||||||
aria-label={`${method} ${path.replace(/\//g, "\u200b/")}`}
|
aria-label={`${method} ${path.replace(/\//g, "\u200b/")}`}
|
||||||
className="opblock-control-arrow"
|
className="opblock-control-arrow"
|
||||||
@@ -103,7 +104,6 @@ export default class OperationSummary extends PureComponent {
|
|||||||
onClick={toggleShown}>
|
onClick={toggleShown}>
|
||||||
{isShown ? <ArrowUpIcon className="arrow" /> : <ArrowDownIcon className="arrow" />}
|
{isShown ? <ArrowUpIcon className="arrow" /> : <ArrowDownIcon className="arrow" />}
|
||||||
</button>
|
</button>
|
||||||
<JumpToPath path={specPath} />{/* TODO: use wrapComponents here, swagger-ui doesn't care about jumpToPath */}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user