mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +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 React from 'react'
|
||||||
import { AppWrapper } from "../../../ui/components";
|
import { AppWrapper } from "../../../ui/components";
|
||||||
import { AppContent } from "../../../ui/components/AppContent";
|
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 Nui from '../../../../os/nui-events/utils/Nui';
|
||||||
import { usePhotoModal } from '../../hooks/usePhotoModal';
|
import { usePhotoModal } from '../../hooks/usePhotoModal';
|
||||||
import { usePhotoMeta } from '../../hooks/usePhotoMeta';
|
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,
|
// 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
|
// it will have the value true, which basically means a tweak on the design to fit in a modal
|
||||||
@@ -17,8 +15,6 @@ export const GalleryGrid = (isMessags) => {
|
|||||||
const { setMeta } = usePhotoMeta();
|
const { setMeta } = usePhotoMeta();
|
||||||
const { setModal } = usePhotoModal();
|
const { setModal } = usePhotoModal();
|
||||||
|
|
||||||
//let history = useHistory();
|
|
||||||
|
|
||||||
const photos = usePhotos();
|
const photos = usePhotos();
|
||||||
|
|
||||||
console.log(photos)
|
console.log(photos)
|
||||||
@@ -30,7 +26,6 @@ export const GalleryGrid = (isMessags) => {
|
|||||||
const handlePhotoOpen = (photo) => {
|
const handlePhotoOpen = (photo) => {
|
||||||
setModal(true)
|
setModal(true)
|
||||||
setMeta(photo)
|
setMeta(photo)
|
||||||
//history.push('/camera/image')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!photos) return (
|
if(!photos) return (
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Modal from '../../../../ui/components/Modal';
|
|
||||||
import { usePhotoMeta } from '../../hooks/usePhotoMeta';
|
import { usePhotoMeta } from '../../hooks/usePhotoMeta';
|
||||||
import { usePhotoModal } from '../../hooks/usePhotoModal';
|
import { usePhotoModal } from '../../hooks/usePhotoModal';
|
||||||
import useStyles from './modal.styles';
|
import useStyles from './modal.styles';
|
||||||
import { useHistory } from 'react-router-dom';
|
|
||||||
import { Button, Paper } from '@material-ui/core';
|
import { Button, Paper } from '@material-ui/core';
|
||||||
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
|
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
|
||||||
import DeleteIcon from '@material-ui/icons/Delete';
|
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 Modal from '../../../../ui/components/Modal';
|
||||||
import { useShareLink } from '../../hooks/useShareLink';
|
import { useShareLink } from '../../hooks/useShareLink';
|
||||||
import { useShareModal } from '../../hooks/useShareModal';
|
import { useShareModal } from '../../hooks/useShareModal';
|
||||||
@@ -8,7 +8,6 @@ import { setClipboard } from '../../../../os/phone/hooks/useClipboard';
|
|||||||
import CloseIcon from '@material-ui/icons/Close';
|
import CloseIcon from '@material-ui/icons/Close';
|
||||||
|
|
||||||
import useStyles from './modal.styles';
|
import useStyles from './modal.styles';
|
||||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
|
||||||
|
|
||||||
export const ShareModal = (meta) => {
|
export const ShareModal = (meta) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|||||||
Reference in new issue
Block a user