Skip to content

Commit

Permalink
Adapt ViewRoomOpts (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlynguyen authored Nov 8, 2023
1 parent ff2ca9f commit 12e9fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lifecycles/RoomViewLifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type RoomPreviewOpts = {

export type ViewRoomOpts = {
buttons: Array<{
icon: React.ReactNode;
icon: React.ReactNode | (() => React.ReactNode);
id: string;
label: () => string;
onClick: () => void;
Expand Down
2 changes: 1 addition & 1 deletion test/lifecycles/RoomViewLifecycle.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("RoomViewLifecycle", () => {
const roomHeaderOpts: ViewRoomOpts = {
buttons: [
{
icon: "test-icon",
icon: () => "test-icon",
id: "test-id",
label: () => "test-label",
onClick: () => {},
Expand Down

0 comments on commit 12e9fe0

Please sign in to comment.