@onehat/ui 0.3.254 → 0.3.256
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
|
@@ -690,7 +690,7 @@ function GridComponent(props) {
|
|
|
690
690
|
if (CURRENT_MODE !== UI_MODE_WEB) { // TODO: Remove this conditional, and don't even do the double render for RN
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
|
-
if (!Repository) {
|
|
693
|
+
if (!Repository || Repository.isDestroyed) { // This method gets delayed, so it's possible for Repository to have been destroyed. Check for this
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
696
|
|
|
@@ -483,7 +483,7 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
|
|
|
483
483
|
if (_.isPlainObject(val1)) {
|
|
484
484
|
for (let key2 in val1) { if (val1.hasOwnProperty(key2)) {
|
|
485
485
|
const val2 = val1[key2];
|
|
486
|
-
msg += "\n" +
|
|
486
|
+
msg += "\n" + key + ': ' + val2;
|
|
487
487
|
} }
|
|
488
488
|
} else if (_.isString(data)) {
|
|
489
489
|
msg += "\n" + data;
|
|
@@ -492,7 +492,7 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
492
492
|
if (_.isPlainObject(val1)) {
|
|
493
493
|
for (let key2 in val1) { if (val1.hasOwnProperty(key2)) {
|
|
494
494
|
const val2 = val1[key2];
|
|
495
|
-
msg += "\n" +
|
|
495
|
+
msg += "\n" + key + ': ' + val2;
|
|
496
496
|
} }
|
|
497
497
|
} else if (_.isString(data)) {
|
|
498
498
|
msg += "\n" + data;
|
|
@@ -83,41 +83,38 @@ function ManagerScreen(props) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
return <Column maxHeight="100vh" overflow="hidden" flex={1} w="100%" onLayout={onLayout}>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
</Row>
|
|
119
|
-
{whichComponent}
|
|
120
|
-
</>}
|
|
86
|
+
<Row
|
|
87
|
+
h="80px"
|
|
88
|
+
py={2}
|
|
89
|
+
borderBottomWidth={2}
|
|
90
|
+
borderBottomColor="#ccc"
|
|
91
|
+
>
|
|
92
|
+
<Text p={4} fontSize="26" fontWeight={700} {...textProps}>{title}</Text>
|
|
93
|
+
{allowSideBySide &&
|
|
94
|
+
<>
|
|
95
|
+
<IconButton
|
|
96
|
+
icon={FullWidth}
|
|
97
|
+
_icon={{
|
|
98
|
+
size: '25px',
|
|
99
|
+
color: mode === MODE_FULL ? 'primary.100' : '#000',
|
|
100
|
+
}}
|
|
101
|
+
disabled={mode === MODE_FULL}
|
|
102
|
+
onPress={() => setMode(MODE_FULL)}
|
|
103
|
+
tooltip="Full Width"
|
|
104
|
+
/>
|
|
105
|
+
<IconButton
|
|
106
|
+
icon={SideBySide}
|
|
107
|
+
_icon={{
|
|
108
|
+
size: '25px',
|
|
109
|
+
color: mode === MODE_SIDE ? 'primary.100' : '#000',
|
|
110
|
+
}}
|
|
111
|
+
disabled={mode === MODE_SIDE}
|
|
112
|
+
onPress={() => setMode(MODE_SIDE)}
|
|
113
|
+
tooltip="Side Editor"
|
|
114
|
+
/>
|
|
115
|
+
</>}
|
|
116
|
+
</Row>
|
|
117
|
+
{isRendered && isModeSet && whichComponent}
|
|
121
118
|
</Column>;
|
|
122
119
|
}
|
|
123
120
|
|