{t("APPS_TWITTER_JUST_NOW")}
@@ -79,5 +85,4 @@ function TwitterNotification() {
);
}
-
export default TwitterNotification;
diff --git a/phone/src/apps/twitter/hooks/state.ts b/phone/src/apps/twitter/hooks/state.ts
index 10d8a65..6349459 100644
--- a/phone/src/apps/twitter/hooks/state.ts
+++ b/phone/src/apps/twitter/hooks/state.ts
@@ -38,7 +38,7 @@ export const twitterState = {
default: null,
}),
notification: atom({
- key: 'notification',
+ key: "notification",
default: null,
- })
+ }),
};
diff --git a/phone/src/apps/twitter/hooks/useTwitterNotification.ts b/phone/src/apps/twitter/hooks/useTwitterNotification.ts
index 98b6ad7..2e4c231 100644
--- a/phone/src/apps/twitter/hooks/useTwitterNotification.ts
+++ b/phone/src/apps/twitter/hooks/useTwitterNotification.ts
@@ -4,7 +4,7 @@ import { Tweet } from "../interfaces";
import { twitterState } from "./state";
interface ITwitterNotification {
- notification: Tweet | null;
+ notification: Tweet | null;
}
export const useTwitterNotification = (): ITwitterNotification => {
diff --git a/phone/src/apps/twitter/hooks/useTwitterService.ts b/phone/src/apps/twitter/hooks/useTwitterService.ts
index 2937bd5..25a2f5b 100644
--- a/phone/src/apps/twitter/hooks/useTwitterService.ts
+++ b/phone/src/apps/twitter/hooks/useTwitterService.ts
@@ -6,7 +6,6 @@ import { IMAGE_DELIMITER } from "../utils/images";
import { APP_TWITTER } from "../utils/constants";
import { twitterState } from "./state";
-
/**
* Perform all necessary processing/transforms from the raw database
* data to what the frontend expects
@@ -59,7 +58,7 @@ export const useTwitterService = () => {
const _setNotification = (tweet) => {
setNotification(tweet);
- }
+ };
const _setTweets = (tweets) => {
setTweets(tweets.map(processTweet));
@@ -75,5 +74,5 @@ export const useTwitterService = () => {
useNuiEvent(APP_TWITTER, "fetchTweetsFiltered", _setFilteredTweets);
useNuiEvent(APP_TWITTER, "createTweetLoading", setCreateLoading);
useNuiEvent(APP_TWITTER, "createTweetResult", _setCreateSuccess);
- useNuiEvent(APP_TWITTER, 'createTweetBroadcast', _setNotification)
+ useNuiEvent(APP_TWITTER, "createTweetBroadcast", _setNotification);
};
diff --git a/phone/src/apps/twitter/interfaces.ts b/phone/src/apps/twitter/interfaces.ts
index 5db7924..39e6436 100644
--- a/phone/src/apps/twitter/interfaces.ts
+++ b/phone/src/apps/twitter/interfaces.ts
@@ -1,10 +1,10 @@
export interface Tweet {
- id: number;
- profile_name?: string;
- avatar_url?: string;
- message: string;
- createdAt?: string;
- updatedAt?: string;
- images?: string;
- likes?: number;
- }
\ No newline at end of file
+ id: number;
+ profile_name?: string;
+ avatar_url?: string;
+ message: string;
+ createdAt?: string;
+ updatedAt?: string;
+ images?: string;
+ likes?: number;
+}
diff --git a/phone/src/index.tsx b/phone/src/index.tsx
index 2835c84..c7fc224 100644
--- a/phone/src/index.tsx
+++ b/phone/src/index.tsx
@@ -7,7 +7,7 @@ import { RecoilRoot } from "recoil";
import "./main.css";
import Phone from "./Phone";
import * as serviceWorker from "./serviceWorker";
-import TwitterNotification from './apps/twitter/components/notification/TwitterNotification';
+import TwitterNotification from "./apps/twitter/components/notification/TwitterNotification";
ReactDOM.render(
diff --git a/phone/src/main.css b/phone/src/main.css
index 787c617..f7ed8a8 100644
--- a/phone/src/main.css
+++ b/phone/src/main.css
@@ -1,6 +1,6 @@
body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -10,10 +10,13 @@ body {
}
code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
-a, a:visited, a:hover, a:active {
+a,
+a:visited,
+a:hover,
+a:active {
text-decoration: none;
}
diff --git a/phone/src/os/apps/hooks/useApps.tsx b/phone/src/os/apps/hooks/useApps.tsx
index 626d1a0..c81aee8 100644
--- a/phone/src/os/apps/hooks/useApps.tsx
+++ b/phone/src/os/apps/hooks/useApps.tsx
@@ -10,8 +10,13 @@ import {
amber,
} from "@material-ui/core/colors";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { faAd, faPlaneArrival, faPhoneAlt, faLandmark } from "@fortawesome/free-solid-svg-icons";
-import { faTwitter } from '@fortawesome/free-brands-svg-icons'
+import {
+ faAd,
+ faPlaneArrival,
+ faPhoneAlt,
+ faLandmark,
+} from "@fortawesome/free-solid-svg-icons";
+import { faTwitter } from "@fortawesome/free-brands-svg-icons";
import ContactsIcon from "@material-ui/icons/Contacts";
import SettingsIcon from "@material-ui/icons/Settings";
@@ -90,7 +95,7 @@ const appsState = atom({
{
id: "TWITTER",
nameLocale: "APPS_TWITTER",
- icon: ,
+ icon: ,
backgroundColor: blue[600],
color: common.white,
path: "/twitter",
diff --git a/phone/src/os/interfaces/serverConfig.ts b/phone/src/os/interfaces/serverConfig.ts
index 178ce51..6c2bf27 100644
--- a/phone/src/os/interfaces/serverConfig.ts
+++ b/phone/src/os/interfaces/serverConfig.ts
@@ -10,8 +10,8 @@ interface TwitterConfig {
}
interface NotificationConfig {
- horizontal: 'left' | 'center' | 'right';
- vertical: 'bottom' | 'top';
+ horizontal: "left" | "center" | "right";
+ vertical: "bottom" | "top";
}
export interface ServerConfig {
diff --git a/phone/src/ui/components/Notification.tsx b/phone/src/ui/components/Notification.tsx
index 4da7ddb..851880d 100644
--- a/phone/src/ui/components/Notification.tsx
+++ b/phone/src/ui/components/Notification.tsx
@@ -1,18 +1,21 @@
import React from "react";
import { ThemeProvider } from "@material-ui/core";
-import Paper from '@material-ui/core/Paper';
-import Snackbar from '@material-ui/core/Snackbar';
-import Fade from '@material-ui/core/Fade';
+import Paper from "@material-ui/core/Paper";
+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: '100px',
- opacity: '0.93',
- }
+ width: "350px",
+ height: "100px",
+ opacity: "0.93",
+ },
+ snackBar: {
+ zIndex: -5, // we want this to appear behind other active NUI events...probably
+ },
});
function Notification({ children, handleClose, open }) {
@@ -26,21 +29,19 @@ function Notification({ children, handleClose, open }) {
return (
- null }}
- onClose={handleClose}
- open={open}
- TransitionComponent={Fade}
- autoHideDuration={6000}
- >
-
- {children}
-
-
+ null }}
+ onClose={handleClose}
+ open={open}
+ TransitionComponent={Fade}
+ autoHideDuration={6000}
+ >
+ {children}
+
);
}
-
export default Notification;
diff --git a/resources/html/index.html b/resources/html/index.html
index 9c511ba..d196fe9 100644
--- a/resources/html/index.html
+++ b/resources/html/index.html
@@ -1 +1,44 @@
-React App
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+ React App
+
+
+
+
+
+
+