feat(camera/nui): fixed warnings

This commit is contained in:
Christopher committed 2021-01-07 21:43:53 +01:00
1 parent 18db9e5a4d
commit abf644986a
4 files changed
+1 -10

No files matched your search

@@ -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 (