Skip to content

Commit

Permalink
[frontend] fix NotePopover typing
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Jan 10, 2025
1 parent 5585997 commit 0adab3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ const NotePopoverDeletionMutation = graphql`
`;

interface NotePopoverProps {
id?: string;
id: string;
handleOpenRemoveExternal?: () => void;
size?: 'medium' | 'large' | 'small' | undefined;
note: StixCoreObjectOrStixCoreRelationshipNoteCard_node$data;
paginationOptions: StixCoreObjectOrStixCoreRelationshipNotesCardsQuery$variables;
paginationOptions?: StixCoreObjectOrStixCoreRelationshipNotesCardsQuery$variables;
variant?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const RootNote = () => {
placeholder={
<ContainerHeader
container={props.note}
PopoverComponent={<NotePopover note={note}/>}
PopoverComponent={<NotePopover note={note} id={note.id} />}
EditComponent={
<CollaborativeSecurity data={note} needs={[KNOWLEDGE_KNUPDATE]}>
<NoteEdition noteId={note.id}/>
Expand Down

0 comments on commit 0adab3c

Please sign in to comment.