Skip to content

Commit

Permalink
chore: clean up app fixes, remove example logo (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbuchel authored Jan 13, 2023
1 parent 30f3160 commit 3560e26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
View,
Flex,
Loader,
Icon,
Text,
FaceLivenessErrorModal,
FaceLivenessFailureModal,
Expand All @@ -13,8 +12,6 @@ import { useLiveness } from './useLiveness';
import { SessionIdAlert } from './SessionIdAlert';
import { GetLivenessResultCard } from './GetLivenessResultCard';

import LivenessLogo from './LivenessLogo';

export default function LivenessDefault({
disableStartScreen = false,
components = undefined,
Expand All @@ -35,6 +32,11 @@ export default function LivenessDefault({
return <div>Some error occured...</div>;
}

function onUserCancel() {
stopLiveness();
setError(undefined);
}

return (
<View maxWidth="640px" margin="0 auto">
{createLivenessSessionApiLoading ? (
Expand All @@ -50,20 +52,10 @@ export default function LivenessDefault({
>
<SessionIdAlert sessionId={createLivenessSessionApiData.sessionId} />

<Icon
ariaLabel="Amplify UI Liveness"
margin="0 auto"
width="160"
height="52"
viewBox={{ width: 160, height: 52 }}
>
<LivenessLogo />
</Icon>

<Flex direction="column" position="relative">
<Flex gap="0" direction="column" position="relative">
<FaceLivenessDetector
sessionId={createLivenessSessionApiData.sessionId}
onUserCancel={stopLiveness}
onUserCancel={onUserCancel}
onGetLivenessDetection={handleGetLivenessDetection}
onError={(error) => {
setError(error);
Expand Down

This file was deleted.

0 comments on commit 3560e26

Please sign in to comment.