@onehat/ui 0.3.96 → 0.3.98
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
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
Text,
|
|
6
6
|
} from 'native-base';
|
|
7
7
|
import withComponent from '../Hoc/withComponent.js';
|
|
8
|
+
import UiGlobals from '../../UiGlobals.js';
|
|
8
9
|
import IconButton from '../Buttons/IconButton';
|
|
9
10
|
import FullWidth from '../Icons/FullWidth';
|
|
10
11
|
import SideBySide from '../Icons/SideBySide';
|
|
@@ -23,6 +24,7 @@ function ManagerScreen(props) {
|
|
|
23
24
|
fullModeComponent,
|
|
24
25
|
id,
|
|
25
26
|
} = props,
|
|
27
|
+
styles = UiGlobals.styles,
|
|
26
28
|
[isReady, setIsReady] = useState(false),
|
|
27
29
|
[mode, setModeRaw] = useState(MODE_FULL),
|
|
28
30
|
setMode = (newMode) => {
|
|
@@ -61,6 +63,13 @@ function ManagerScreen(props) {
|
|
|
61
63
|
whichComponent = sideModeComponent;
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
const textProps = {};
|
|
67
|
+
if (styles.MANAGER_SCREEN_TITLE) {
|
|
68
|
+
textProps.style = {
|
|
69
|
+
fontFamily: styles.MANAGER_SCREEN_TITLE,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
64
73
|
return <Column maxHeight="100vh" overflow="hidden" flex={1} w="100%">
|
|
65
74
|
<Row
|
|
66
75
|
h="80px"
|
|
@@ -68,7 +77,7 @@ function ManagerScreen(props) {
|
|
|
68
77
|
borderBottomWidth={2}
|
|
69
78
|
borderBottomColor="#ccc"
|
|
70
79
|
>
|
|
71
|
-
<Text p={4} fontSize="26" fontWeight={700}>{title}</Text>
|
|
80
|
+
<Text p={4} fontSize="26" fontWeight={700} {...textProps}>{title}</Text>
|
|
72
81
|
<IconButton
|
|
73
82
|
icon={FullWidth}
|
|
74
83
|
_icon={{
|