Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devtools: Show inspectedElement key in right pane #18737

Merged
merged 9 commits into from
May 11, 2020
Prev Previous commit
Next Next commit
Revert changes to InspectedElementTree.js
  • Loading branch information
bvaughn committed May 11, 2020
commit 932fba409b760cae8f7bb196a2caabd13e14871c
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,14 @@ export default function InspectedElementTree({
} else {
return (
<div className={styles.InspectedElementTree}>
{label && (
<div className={styles.HeaderRow}>
<div className={styles.Header}>{label}</div>
{!isEmpty && (
<Button onClick={handleCopy} title="Copy to clipboard">
<ButtonIcon type="copy" />
</Button>
)}
</div>
)}
<div className={styles.HeaderRow}>
<div className={styles.Header}>{label}</div>
{!isEmpty && (
<Button onClick={handleCopy} title="Copy to clipboard">
<ButtonIcon type="copy" />
</Button>
)}
</div>
{isEmpty && !canAddEntries && <div className={styles.Empty}>None</div>}
{!isEmpty &&
(entries: any).map(([name, value]) => (
Expand Down