-
@{notification.profile_name}
+
{profileName}
{t("APPS_TWITTER_JUST_NOW")}
diff --git a/phone/src/os/interfaces/serverConfig.ts b/phone/src/os/interfaces/serverConfig.ts
index 7ea4c59..178ce51 100644
--- a/phone/src/os/interfaces/serverConfig.ts
+++ b/phone/src/os/interfaces/serverConfig.ts
@@ -9,6 +9,11 @@ interface TwitterConfig {
maxImages: number;
}
+interface NotificationConfig {
+ horizontal: 'left' | 'center' | 'right';
+ vertical: 'bottom' | 'top';
+}
+
export interface ServerConfig {
Locale: string;
KeyTogglePhone: number;
@@ -19,4 +24,5 @@ export interface ServerConfig {
DestoryChance: number;
DestroyPhoneReCheck: number;
twitter: TwitterConfig;
+ notificationPosition: NotificationConfig;
}
diff --git a/phone/src/react-app-env.d.ts b/phone/src/react-app-env.d.ts
deleted file mode 100644
index 6431bc5..0000000
--- a/phone/src/react-app-env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-///
diff --git a/phone/src/setupTests.ts b/phone/src/setupTests.tsx
similarity index 100%
rename from phone/src/setupTests.ts
rename to phone/src/setupTests.tsx
diff --git a/phone/src/ui/components/Notification.tsx b/phone/src/ui/components/Notification.tsx
index c19970e..4da7ddb 100644
--- a/phone/src/ui/components/Notification.tsx
+++ b/phone/src/ui/components/Notification.tsx
@@ -5,23 +5,29 @@ import Snackbar from '@material-ui/core/Snackbar';
import Fade from '@material-ui/core/Fade';
import { makeStyles } from "@material-ui/core/styles";
import { useSettings } from "../../apps/settings/hooks/useSettings";
+import { usePhone } from "../../os/phone/hooks/usePhone";
const useStyles = makeStyles({
paper: {
width: '350px',
- height: '85px',
+ height: '100px',
opacity: '0.93',
}
});
-function Notification({ key, children, handleClose, open }) {
+function Notification({ children, handleClose, open }) {
const classes = useStyles();
const { currentTheme } = useSettings();
+ const { config } = usePhone();
+
+ if (!config) return null;
+
+ const { horizontal, vertical } = config.notificationPosition;
+
return (