@onehat/ui 0.3.258 → 0.3.260
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
|
@@ -42,10 +42,12 @@ function ManagerScreen(props) {
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
onLayout = (e) => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
if (sideModeComponent) {
|
|
46
|
+
const
|
|
47
|
+
containerWidth = e.nativeEvent.layout.width,
|
|
48
|
+
allowSideBySide = containerWidth > 600;
|
|
49
|
+
setAllowSideBySide(allowSideBySide);
|
|
50
|
+
}
|
|
49
51
|
setIsRendered(true);
|
|
50
52
|
};
|
|
51
53
|
|
|
@@ -24,7 +24,7 @@ import IconButton from '../../Components/Buttons/IconButton.js';
|
|
|
24
24
|
import Xmark from '../../Components/Icons/Xmark.js'
|
|
25
25
|
import withAlert from '../../Components/Hoc/withAlert.js';
|
|
26
26
|
import withData from '../../Components/Hoc/withData.js';
|
|
27
|
-
import
|
|
27
|
+
import downloadInBackground from '../../Functions/downloadInBackground.js';
|
|
28
28
|
import _ from 'lodash';
|
|
29
29
|
|
|
30
30
|
const
|
|
@@ -51,7 +51,7 @@ function FileCardCustom(props) {
|
|
|
51
51
|
borderWidth={1}
|
|
52
52
|
borderColor="primary.700"
|
|
53
53
|
onPress={() => {
|
|
54
|
-
|
|
54
|
+
downloadInBackground(downloadUrl);
|
|
55
55
|
}}
|
|
56
56
|
>
|
|
57
57
|
{isDownloading && <Spinner mr={2} />}
|