Skip to content

Commit

Permalink
docs: update componentBeingEdited variable doc
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Nov 11, 2024
1 parent 258585c commit 1f7c6ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/library-authoring/common/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export type LibraryContextData = {
// Current collection
openCollectionInfoSidebar: (collectionId: string, additionalAction?: SidebarAdditionalActions) => void;
// Editor modal - for editing some component
/** If the editor is open and the user is editing some component, this is its usageKey */
/** If the editor is open and the user is editing some component, this is its usageKey
and the callback function that should be called on closing the editor.
*/
componentBeingEdited: ComponentEditorInfo | undefined;
openComponentEditor: (usageKey: string, onClose?: () => void) => void;
closeComponentEditor: () => void;
Expand Down

0 comments on commit 1f7c6ce

Please sign in to comment.