remove leftover layout action code
This commit is contained in:
@@ -435,6 +435,19 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
[vm],
|
[vm],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
widget?.api.transport
|
||||||
|
.send(
|
||||||
|
gridMode === "grid"
|
||||||
|
? ElementWidgetActions.TileLayout
|
||||||
|
: ElementWidgetActions.SpotlightLayout,
|
||||||
|
{},
|
||||||
|
)
|
||||||
|
.catch((e) => {
|
||||||
|
logger.error("Failed to send layout change to widget API", e);
|
||||||
|
});
|
||||||
|
}, [gridMode]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (widget) {
|
if (widget) {
|
||||||
const onTileLayout = (ev: CustomEvent<IWidgetApiRequest>): void => {
|
const onTileLayout = (ev: CustomEvent<IWidgetApiRequest>): void => {
|
||||||
|
|||||||
Reference in New Issue
Block a user