-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable GlossCell, DefinitionCell when sense being deleted (#2575)
Also, finish work in DefinitionCell to match updates to GlossCell from #2493.
- Loading branch information
1 parent
4a1f0fc
commit 7947492
Showing
4 changed files
with
130 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ReactElement, ReactNode } from "react"; | ||
|
||
interface OverlayProps { | ||
children?: ReactNode; | ||
on?: boolean; | ||
} | ||
|
||
export default function Overlay(props: OverlayProps): ReactElement { | ||
return ( | ||
<div | ||
style={ | ||
props.on ? { backgroundColor: "white", opacity: 0.4, zIndex: 9 } : {} | ||
} | ||
> | ||
{props.children} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters