Skip to content

Commit

Permalink
707: Improvements based on code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tombogle committed Feb 28, 2024
1 parent a8a739a commit 2410ec8
Show file tree
Hide file tree
Showing 8 changed files with 738 additions and 694 deletions.
395 changes: 198 additions & 197 deletions lib/platform-bible-react/dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.cjs.map

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion lib/platform-bible-react/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,16 @@ export type ContextMenuProps = GroupedMenuItemListProps & {
/** Additional css classes to help with styling of the context menu */
className?: string;
};
export function ContextMenu(menuProps: React$1.PropsWithChildren<ContextMenuProps>): string | number | boolean | Iterable<React$1.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
/**
* A component that wraps its children, making them the "target" of a context menu so that the
* context menu is displayed when the target is right-clicked.
*
* @param {ContextMenuProps & PropsWithChildren} props - The properties for the ContextMenu
* component which define what menu items to display and supply a command handler for when a menu
* item is clicked.
* @returns {JSX.Element} The ContextMenu component (including the wrapped children)
*/
export function ContextMenu({ className, commandHandler, menuDefinition, children, }: React$1.PropsWithChildren<ContextMenuProps>): string | number | boolean | Iterable<React$1.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
export interface ScrRefSelectorProps {
scrRef: ScriptureReference;
handleSubmit: (scrRef: ScriptureReference) => void;
Expand Down
Loading

0 comments on commit 2410ec8

Please sign in to comment.