Skip to content

Commit

Permalink
Things
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Jun 17, 2022
1 parent ba6d5a6 commit f8e7b40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/components/declaration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ export function Declaration<Docs>({
) : (
<Fragment>
<Syntax kind="keyword">module </Syntax>
<a css={styles.moduleSpecifierLink}>
{JSON.stringify(decl.name)}
</a>
<Syntax kind="string">{JSON.stringify(decl.name)}</Syntax>
</Fragment>
)}
<Syntax kind="bracket">{" {"}</Syntax>
Expand Down
6 changes: 3 additions & 3 deletions src/components/symbol.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@ export function RenderRootSymbol<Docs>({
</h3>
</a>
{pkgRefPortion !== undefined && (
<div>
<div css={{ display: "flex", gap: 4 }}>
{locationsForSymbol.map((location, i) => (
<Fragment key={i}>
<Link
href={`/src/${pkgRefPortion}${location.file}#L${
location.line + 1
}`}
>
<a>[decl]</a>
<a>decl</a>
</Link>
{location.src && (
<Link
href={`/src/${pkgRefPortion}${location.src.file}#L${
location.src.line + 1
}`}
>
<a>[src]</a>
<a>source</a>
</Link>
)}
</Fragment>
Expand Down

0 comments on commit f8e7b40

Please sign in to comment.