Skip to content

Commit

Permalink
[DataEntryTable] Don't hide the Recent Entry delete icons (#2607)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Sep 19, 2023
1 parent 1c13084 commit 84b1645
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/DataEntry/DataEntryTable/RecentEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default function RecentEntry(props: RecentEntryProps): ReactElement {
sense.glosses.push(newGloss("", props.analysisLang.bcp47));
}
const [gloss, setGloss] = useState(firstGlossText(sense));
const [hovering, setHovering] = useState(false);
const [vernacular, setVernacular] = useState(props.entry.vernacular);

function conditionallyUpdateGloss(): void {
Expand All @@ -60,13 +59,7 @@ export default function RecentEntry(props: RecentEntryProps): ReactElement {
}

return (
<Grid
id={`${idAffix}-${props.rowIndex}`}
container
onMouseEnter={() => setHovering(true)}
onMouseLeave={() => setHovering(false)}
alignItems="center"
>
<Grid alignItems="center" container id={`${idAffix}-${props.rowIndex}`}>
<Grid
item
xs={4}
Expand Down Expand Up @@ -161,7 +154,7 @@ export default function RecentEntry(props: RecentEntryProps): ReactElement {
position: "relative",
}}
>
{!props.disabled && hovering && (
{!props.disabled && (
<DeleteEntry
removeEntry={() => props.removeEntry()}
buttonId={`${idAffix}-${props.rowIndex}-delete`}
Expand Down

0 comments on commit 84b1645

Please sign in to comment.