Skip to content

Commit

Permalink
Add userId to field Context type
Browse files Browse the repository at this point in the history
  • Loading branch information
RedwanPlague committed May 27, 2024
1 parent f9b23c7 commit 0fa9646
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type Config = {
export type Context = {
taskId: string;
contentGuid: string;
userId: string;
};

export type HostMessage =
Expand Down
3 changes: 1 addition & 2 deletions pages/component/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export default function Component() {
return;
}
case "field-context": {
const { taskId, contentGuid } = message.data;
console.log(`Task ID ${taskId} & Content GUID ${contentGuid}`);
console.log("Context: ", message.data);
return;
}
}
Expand Down
3 changes: 1 addition & 2 deletions pages/component/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ export default function Component() {
return;
}
case "field-context": {
const { taskId, contentGuid } = message.data;
console.log(`Task ID ${taskId} & Content GUID ${contentGuid}`);
console.log("Context: ", message.data);
return;
}
}
Expand Down

0 comments on commit 0fa9646

Please sign in to comment.