snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
24
react/features/base/styles/functions.web.ts
Normal file
24
react/features/base/styles/functions.web.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { StyleType } from './functions.any';
|
||||
|
||||
export * from './functions.any';
|
||||
|
||||
/**
|
||||
* Fixes the style prop that is passed to a platform generic component based on platform specific
|
||||
* format requirements.
|
||||
*
|
||||
* @param {StyleType} style - The passed style prop to the component.
|
||||
* @returns {StyleType}
|
||||
*/
|
||||
export function getFixedPlatformStyle(style?: StyleType | StyleType[]) {
|
||||
if (Array.isArray(style)) {
|
||||
const _style = {};
|
||||
|
||||
for (const component of style) {
|
||||
Object.assign(_style, component);
|
||||
}
|
||||
|
||||
return _style;
|
||||
}
|
||||
|
||||
return style;
|
||||
}
|
||||
Reference in New Issue
Block a user