Skip to content

Commit c2ca73c

Browse files
committed
adjust export display
1 parent d029676 commit c2ca73c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

ui/src/components/repo/toolbar.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ import * as qActions from "../../lib/queue/actions";
6161

6262
function Code(props) {
6363
return (
64-
<Box component="pre" {...props}>
64+
<Box
65+
component="pre"
66+
sx={{
67+
// mr: 1,
68+
// my: 0,
69+
display: "inline",
70+
}}
71+
{...props}
72+
>
6573
{props.children}
6674
</Box>
6775
);
@@ -845,14 +853,13 @@ export function ExportList({ pod }) {
845853
</Box> */}
846854
{Object.entries(pod.exports).map(([k, v]) => (
847855
<Box
848-
component="pre"
849856
key={k}
850857
sx={{
851858
mr: 1,
852859
my: 0,
853860
}}
854861
>
855-
{k}: {v}
862+
Exports: <Code>{k}</Code>: use: <Code>{v.join(",")}</Code>
856863
</Box>
857864
))}
858865
</Box>
@@ -861,7 +868,7 @@ export function ExportList({ pod }) {
861868
<Box>
862869
{Object.entries(pod.reexports).map(([k, v]) => (
863870
<Box key={k}>
864-
{k}: {v ? v : "null"}
871+
RE-exports: <Code>{k}</Code>: from: <Code>{v ? v : "null"}</Code>
865872
</Box>
866873
))}
867874
</Box>

0 commit comments

Comments
 (0)