tethysfaceid
Version:
1 lines • 1.93 kB
JSON
{"ast":null,"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React, { useEffect, useState } from 'react';\nimport { Button, Card } from 'antd';\nimport { RightOutlined } from '@ant-design/icons';\nimport { Liveness } from \"../LivenessCheck/liveness\";\nimport { dataTermsPage } from './TermsAndConditionsData';\nimport TextNode from 'components/TextNode/TextNode';\nimport { faceCompare } from 'components/LogInForm/loginServices';\nimport { handleError } from 'common/utils';\n\nconst TermsAndConditions = ({\n data,\n onContinue\n}) => {\n const onLivenessCheckPressed = () => {\n Liveness.onLivenessCheckPressed(data, onContinue);\n }; // const onClickHandler = () => {\n // faceCompare({}).then((data) => {\n // console.log(data);\n // }).catch(handleError)\n // }\n\n\n const {\n id,\n username\n } = data || {};\n console.log(id, username);\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"primary\",\n children: [/*#__PURE__*/_jsx(Card, {\n className: \"overflow-scroll\",\n style: {\n maxHeight: '60vh',\n borderBottom: 0\n },\n bodyStyle: {\n paddingTop: '8x'\n },\n children: /*#__PURE__*/_jsx(TextNode, {\n data: dataTermsPage\n })\n }), /*#__PURE__*/_jsx(\"div\", {\n className: \"wrapping-box-container\",\n children: /*#__PURE__*/_jsx(\"div\", {\n id: \"controls\",\n className: \"controls\",\n children: /*#__PURE__*/_jsxs(Button, {\n id: \"liveness-button\",\n type: \"primary\",\n block: true // onClick={onClickHandler}\n ,\n onClick: onLivenessCheckPressed,\n children: [\"Continue\", /*#__PURE__*/_jsx(RightOutlined, {})]\n })\n })\n })]\n });\n};\n\nexport default TermsAndConditions;","map":null,"metadata":{},"sourceType":"module"}