Skip to content

Commit

Permalink
Fix camera
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbopp committed Oct 29, 2023
1 parent c2ed874 commit 688edef
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DineDevineUI/src/pages/OnboardingPage.tsx
Expand Up @@ -12,9 +12,11 @@ import {
import './pages.css'
import {RouteComponentProps} from "react-router";
import {usePhotoGallery} from "../hooks/usePhotoGallery";
import { defineCustomElements } from '@ionic/pwa-elements/loader';


const OnboardingPage: React.FC<RouteComponentProps> = (props: RouteComponentProps) => {
defineCustomElements(window);
useEffect(() => {
const name = localStorage.getItem('name');
const email = localStorage.getItem('email');
Expand All @@ -24,7 +26,6 @@ const OnboardingPage: React.FC<RouteComponentProps> = (props: RouteComponentProp
props.history.push("/match")
}
}, []);

const [name, setName] = useState("");
const [email, setEmail] = useState("");
const { photos, takePhoto } = usePhotoGallery();
Expand Down
17 changes: 16 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
@@ -0,0 +1,5 @@
{
"dependencies": {
"@ionic/pwa-elements": "^3.2.2"
}
}

0 comments on commit 688edef

Please sign in to comment.