Skip to content

Commit

Permalink
Disable editing of filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinsonZ committed Dec 5, 2023
1 parent 7987ad1 commit 3b8f8b8
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/renderer/src/components/SlateCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,7 @@ export default function SlateCard(

contents = (
<>
{allowEdit ? (
<ContentEditable
className="self-start font-detail mb-1"
innerRef={ref}
html={fileName}
onChange={(e) =>
dispatch({
type: "modify_entry",
targetType: "file",
columnId: columnId,
cardId: id,
newValue: e.target.value,
})
}
tagName="h1"
/>
) : (
<p className="self-start font-detail mb-1">{fileName}</p>
)}
<p className="self-start font-detail mb-1">{fileName}</p>
{/* Spacer to push filetype to the bottom */}
<div className="flex-grow"></div>
<div className="flex flex-row">
Expand Down

0 comments on commit 3b8f8b8

Please sign in to comment.