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:
Krzysztof Kowalczyk
2023-09-22 12:07:24 +02:00
committed by GitHub
parent 273bc835cb
commit c2c6ba60b1

View File

@@ -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>
)
}