mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
feat(camera/nui): fixed warnings
This commit is contained in:
1 parent
18db9e5a4d
commit
abf644986a
4 files changed
+1
-10
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import { Fab } from '@material-ui/core';
|
||||
import React from 'react'
|
||||
import { AppWrapper } from "../../../ui/components";
|
||||
import { AppContent } from "../../../ui/components/AppContent";
|
||||
|
||||
@@ -6,8 +6,6 @@ import AddIcon from '@material-ui/icons/Add';
|
||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||
import { usePhotoModal } from '../../hooks/usePhotoModal';
|
||||
import { usePhotoMeta } from '../../hooks/usePhotoMeta';
|
||||
import { useModal } from '../../../contacts/hooks/useModal';
|
||||
//import { useHistory } from 'react-router-dom';
|
||||
|
||||
// isMessage will work as a style handler kinda. If the gallery is rendered in the messages,
|
||||
// it will have the value true, which basically means a tweak on the design to fit in a modal
|
||||
@@ -16,8 +14,6 @@ export const GalleryGrid = (isMessags) => {
|
||||
|
||||
const { setMeta } = usePhotoMeta();
|
||||
const { setModal } = usePhotoModal();
|
||||
|
||||
//let history = useHistory();
|
||||
|
||||
const photos = usePhotos();
|
||||
|
||||
@@ -30,7 +26,6 @@ export const GalleryGrid = (isMessags) => {
|
||||
const handlePhotoOpen = (photo) => {
|
||||
setModal(true)
|
||||
setMeta(photo)
|
||||
//history.push('/camera/image')
|
||||
}
|
||||
|
||||
if(!photos) return (
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import React from 'react'
|
||||
import Modal from '../../../../ui/components/Modal';
|
||||
import { usePhotoMeta } from '../../hooks/usePhotoMeta';
|
||||
import { usePhotoModal } from '../../hooks/usePhotoModal';
|
||||
import useStyles from './modal.styles';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { Button, Paper } from '@material-ui/core';
|
||||
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
|
||||
import DeleteIcon from '@material-ui/icons/Delete';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useRef, useState } from 'react';
|
||||
import React from 'react';
|
||||
import Modal from '../../../../ui/components/Modal';
|
||||
import { useShareLink } from '../../hooks/useShareLink';
|
||||
import { useShareModal } from '../../hooks/useShareModal';
|
||||
@@ -8,7 +8,6 @@ import { setClipboard } from '../../../../os/phone/hooks/useClipboard';
|
||||
import CloseIcon from '@material-ui/icons/Close';
|
||||
|
||||
import useStyles from './modal.styles';
|
||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||
|
||||
export const ShareModal = (meta) => {
|
||||
const classes = useStyles();
|
||||
|
||||
Reference in new issue
Block a user