agora-appbuilder-core 4.0.0-beta.33 → 4.0.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ const LayoutIconButton = (props: LayoutIconButtonInterface) => {
|
|
|
25
25
|
const [isHoveredOnModal, setIsHoveredOnModal] = useState(false);
|
|
26
26
|
const isMobileView = isMobileUA();
|
|
27
27
|
const {isOnActionSheet} = useActionSheet();
|
|
28
|
-
const showLabel = $config.ICON_TEXT
|
|
28
|
+
const showLabel = $config.ICON_TEXT ? true : false;
|
|
29
29
|
const setIsHovered = (hovered: boolean) => {
|
|
30
30
|
if (layoutBtnRef && layoutBtnRef.current) {
|
|
31
31
|
layoutBtnRef?.current?.measure((_fx, _fy, _w, h, _px, _py) => {
|
|
@@ -46,7 +46,7 @@ const LayoutIconButton = (props: LayoutIconButtonInterface) => {
|
|
|
46
46
|
const changeLayout = useChangeDefaultLayout();
|
|
47
47
|
const {currentLayout, setLayout} = useLayout();
|
|
48
48
|
|
|
49
|
-
const layout = layouts.findIndex(
|
|
49
|
+
const layout = layouts.findIndex(item => item.name === currentLayout);
|
|
50
50
|
const renderLayoutIcon = (showDropdown?: boolean) => {
|
|
51
51
|
let onPress = () => {};
|
|
52
52
|
let renderContent = [];
|
|
@@ -116,7 +116,7 @@ const LayoutIconButton = (props: LayoutIconButtonInterface) => {
|
|
|
116
116
|
containerStyle={{
|
|
117
117
|
opacity: !activeUids || activeUids.length === 0 ? 0.6 : 1,
|
|
118
118
|
}}
|
|
119
|
-
setRef={
|
|
119
|
+
setRef={ref => {
|
|
120
120
|
layoutBtnRef.current = ref;
|
|
121
121
|
}}
|
|
122
122
|
key={'defaultLayoutIconWithName'}
|