Feature/floating notifications calling and twitter (#112)

* Add floating notifications :O

* Add phone notifications and refactor calling ui

* This is unsafe

* Fix controls null check

* Remove go to alert

* Fix phone stuck after call

* Remove lazy mount for Phone

* Fix open/close cl_main

* Use effect for notification visibility

* Remove all alerts when phone closes

* Avoid re-render useNuiEvent

* It works now :c
This commit is contained in:
J Francisco Rader authored and GitHub committed 2021-02-23 13:19:10 -05:00
1 parent 4633146d40
commit f6d7a3dbe1
42 files changed
+869 -679

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import React from 'react';
import { Box, makeStyles, Backdrop, Paper } from '@material-ui/core';
import { Box, makeStyles, Backdrop, Paper, BoxProps } from '@material-ui/core';
import { AppContentTypes } from '../interface/InterfaceUI';
const useStyles = makeStyles(() => ({
@@ -29,7 +29,7 @@ export const AppContent = ({
backdrop,
onClickBackdrop,
...props
}: AppContentTypes) => {
}: AppContentTypes & BoxProps) => {
const classes = useStyles();
return (
<Paper className={classes.wrapper} square>
+1 -9
View File
@@ -1,9 +1,8 @@
import React, { useEffect } from 'react';
import React from 'react';
import { AppIcon } from './AppIcon';
import { useTranslation } from 'react-i18next';
import { Grid, makeStyles, Tooltip, Zoom } from '@material-ui/core';
import { Link } from 'react-router-dom';
import { useKeyboard } from '../../os/keyboard/hooks/useKeyboard';
const useStyles = makeStyles((theme) => ({
root: {
@@ -19,16 +18,9 @@ const useStyles = makeStyles((theme) => ({
}));
export const GridMenu = ({ items, Component = AppIcon }) => {
const setKey = useKeyboard();
const classes = useStyles();
const { t } = useTranslation();
useEffect(function registerKeyHandlers() {
setKey('ArrowLeft', () => {
console.log(':v');
});
// eslint-disable-next-line
}, []);
// TODO: Fix tooltip position to be closer to app icon
return (
<Grid container justify='center'>