Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored and astrobot-houston committed Dec 4, 2023
1 parent 29fa504 commit 2fdcd6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/astro/src/runtime/client/dev-overlay/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,6 @@ export class AstroDevOverlay extends HTMLElement {
this.setOverlayVisible(false);
}
});


}

async initPlugin(plugin: DevOverlayPlugin) {
Expand Down
9 changes: 7 additions & 2 deletions packages/astro/src/runtime/client/dev-overlay/plugins/xray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,13 @@ export default {
if (Object.keys(islandProps).length > 0) {
tooltip.sections.push({
title: 'Props',
content: `<pre><code>${JSON.stringify(Object.fromEntries(Object.entries(islandProps)
.map((prop: any) =>([prop[0], prop[1][1]]))), undefined, 2)}</code></pre>`,
content: `<pre><code>${JSON.stringify(
Object.fromEntries(
Object.entries(islandProps).map((prop: any) => [prop[0], prop[1][1]])
),
undefined,
2
)}</code></pre>`,
});
}

Expand Down

0 comments on commit 2fdcd6d

Please sign in to comment.