Skip to content

Commit

Permalink
Remove bookmark button from file edit
Browse files Browse the repository at this point in the history
  • Loading branch information
stefba committed May 18, 2024
1 parent e990cfc commit dc18208
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parts/nav/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export default function Nav({path}: NavProps) {
}

function TargetButton({clickFn}: {clickFn: () => void}) {
if (isFile(path)) {
return null;
}
let isTarget = isActiveTarget(targets, path)
return <button onClick={clickFn}>{ isTarget ? <ActiveTargetIcon /> : <TargetIcon />}</button>
}
Expand Down

0 comments on commit dc18208

Please sign in to comment.