refactor(builtins): remove roomId from RoomViewProps
This commit is contained in:
@@ -60,7 +60,7 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
|
|||||||
// @alpha
|
// @alpha
|
||||||
export interface BuiltinsApi {
|
export interface BuiltinsApi {
|
||||||
renderRoomAvatar(roomId: string, size?: string): React.ReactNode;
|
renderRoomAvatar(roomId: string, size?: string): React.ReactNode;
|
||||||
renderRoomView(roomId: string, props?: Omit<RoomViewProps, "roomId">): React.ReactNode;
|
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @alpha @deprecated (undocumented)
|
// @alpha @deprecated (undocumented)
|
||||||
@@ -351,7 +351,6 @@ export interface RoomViewProps {
|
|||||||
hideComposer?: boolean;
|
hideComposer?: boolean;
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
hideHeader?: boolean;
|
hideHeader?: boolean;
|
||||||
roomId?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// @alpha @deprecated (undocumented)
|
// @alpha @deprecated (undocumented)
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ Please see LICENSE files in the repository root for full details.
|
|||||||
* @alpha Subject to change.
|
* @alpha Subject to change.
|
||||||
*/
|
*/
|
||||||
export interface RoomViewProps {
|
export interface RoomViewProps {
|
||||||
/**
|
|
||||||
* The ID of the room to render.
|
|
||||||
*/
|
|
||||||
roomId?: string;
|
|
||||||
/*
|
/*
|
||||||
* If true, the room header will be hidden.
|
* If true, the room header will be hidden.
|
||||||
*/
|
*/
|
||||||
@@ -48,5 +44,5 @@ export interface BuiltinsApi {
|
|||||||
* @param roomId - Id of the room
|
* @param roomId - Id of the room
|
||||||
* @param props - Additional props to pass to the room view
|
* @param props - Additional props to pass to the room view
|
||||||
*/
|
*/
|
||||||
renderRoomView(roomId: string, props?: Omit<RoomViewProps, "roomId">): React.ReactNode;
|
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user