mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
initial commit for camera app
This commit is contained in:
1 parent
580fb12e92
commit
5b85efedf1
13 files changed
+334
No files matched your search
@@ -0,0 +1,30 @@
|
||||
import { Fab } from '@material-ui/core';
|
||||
import React from 'react'
|
||||
import { AppWrapper } from "../../../ui/components";
|
||||
import { AppContent } from "../../../ui/components/AppContent";
|
||||
import { usePhotoModal } from '../hooks/usePhotoModal';
|
||||
import { GalleryGrid } from './grid/GalleryGrid';
|
||||
import { GalleryModal } from './modal/GalleryModal';
|
||||
|
||||
|
||||
const CameraApp = () => {
|
||||
|
||||
const {modal} = usePhotoModal();
|
||||
|
||||
return (
|
||||
<AppWrapper id='camera-app'>
|
||||
<AppContent>
|
||||
<GalleryModal />
|
||||
{/*<Router>
|
||||
<Switch>
|
||||
<Route path="/camera/image" component={GalleryModal} />
|
||||
<Route path="/" exact component={GalleryGrid} />
|
||||
</Switch>
|
||||
</Router>*/}
|
||||
{!modal ? <GalleryGrid /> : null}
|
||||
</AppContent>
|
||||
</AppWrapper>
|
||||
)
|
||||
}
|
||||
|
||||
export default CameraApp;
|
||||
Reference in new issue
Block a user