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
|
||||
aria-label={`${method} ${path.replace(/\//g, "\u200b/")}`}
|
||||
className="opblock-control-arrow"
|
||||
@@ -103,7 +104,6 @@ export default class OperationSummary extends PureComponent {
|
||||
onClick={toggleShown}>
|
||||
{isShown ? <ArrowUpIcon className="arrow" /> : <ArrowDownIcon className="arrow" />}
|
||||
</button>
|
||||
<JumpToPath path={specPath} />{/* TODO: use wrapComponents here, swagger-ui doesn't care about jumpToPath */}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user