|
@@ -3,6 +3,7 @@
|
3
|
3
|
import * as React from 'react';
|
4
|
4
|
import ThemeManager from "../utils/ThemeManager";
|
5
|
5
|
import WebViewScreen from "../components/WebViewScreen";
|
|
6
|
+import i18n from "i18n-js";
|
6
|
7
|
|
7
|
8
|
type Props = {
|
8
|
9
|
navigation: Object,
|
|
@@ -26,7 +27,9 @@ export default class PlanexScreen extends React.Component<Props> {
|
26
|
27
|
super();
|
27
|
28
|
this.customInjectedJS =
|
28
|
29
|
'document.querySelector(\'head\').innerHTML += \'<meta name="viewport" content="width=device-width, initial-scale=1.0">\';' +
|
29
|
|
- 'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_GENERAL + '" type="text/css"/>\';';
|
|
30
|
+ 'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_GENERAL + '" type="text/css"/>\';' +
|
|
31
|
+ '$(".fc-toolbar .fc-center").append(\'<p id="rotateToLandscape">' + i18n.t("planexScreen.rotateToLandscape") + '</p>\');' +
|
|
32
|
+ '$(".fc-toolbar .fc-center").append(\'<p id="rotateToPortrait">' + i18n.t("planexScreen.rotateToPortrait") + '</p>\');';
|
30
|
33
|
if (ThemeManager.getNightMode())
|
31
|
34
|
this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_NIGHTMODE + '" type="text/css"/>\';';
|
32
|
35
|
}
|