Skip to content

Commit

Permalink
Fix babel linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KilianBoute committed Jun 13, 2024
1 parent bc74a39 commit 7543f7b
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 19 deletions.
6 changes: 1 addition & 5 deletions ui/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"extends": [
"next/babel",
"next/core-web-vitals",
"plugin:storybook/recommended"
]
"extends": ["next", "next/core-web-vitals", "plugin:storybook/recommended"]
}
3 changes: 1 addition & 2 deletions ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ next-env.d.ts
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
.env*.local
/playwright/.cache/
4 changes: 1 addition & 3 deletions ui/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@


/** @type {import('next').NextConfig} */
const nextConfig = {
// basePath: "/facial-access-control", <==== required for github pages only.
// basePath: "/facial-access-control", // <==== required for github pages only.
// output: "export", // <=== enables static exports
reactStrictMode: true,
};
Expand Down
41 changes: 33 additions & 8 deletions ui/src/app/onboarding/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
"use client";

import React, { useState } from "react";
import { Box, Row, Stack, Gradient, Text, Button, Socials, Icon, VideoCapture } from "../../components/ui";
import {
Box,
Row,
Stack,
Gradient,
Text,
Button,
Socials,
Icon,
VideoCapture,
} from "../../components/ui";
import FormComponent from "./components/FormComponent";
import { SubmitHandler } from "react-hook-form";
import * as z from "zod";
Expand Down Expand Up @@ -39,7 +49,7 @@ const Onboarding: React.FC = () => {

console.log("Form data with video:", data);

setIsSubmitted(true);
setIsSubmitted(true);
} else {
console.error("Video is required in onSubmit");
}
Expand Down Expand Up @@ -75,7 +85,11 @@ interface FaceScanSectionProps {
handleRecordingComplete: (recordedChunks: Blob[]) => void;
}

const FaceScanSection: React.FC<FaceScanSectionProps> = ({ isRecording, setIsRecording, handleRecordingComplete }) => (
const FaceScanSection: React.FC<FaceScanSectionProps> = ({
isRecording,
setIsRecording,
handleRecordingComplete,
}) => (
<Stack className="w-2/3 flex items-center place-content-center">
<Box className="w-96">
<VideoCapture
Expand Down Expand Up @@ -106,9 +120,12 @@ const FaceScanSection: React.FC<FaceScanSectionProps> = ({ isRecording, setIsRec
const InfoSection = () => (
<Stack className="p-14 items-center place-content-center">
<Box className="p-10 shadow-md rounded-md bg-white text-xl w-full ">
<Text as="a" weight="bold" className="shadow-inner bg-white" />
Hello, this is a registration form where you can register with a video of yourself! <br />
We will use this video to create biometrics, so you get access into the company and won't need to use a badge or card.
<Text as="a" weight="bold" className="shadow-inner bg-white">
Hello, this is a registration form where you can register with a video
of yourself! &lt;br /&gt; We will use this video to create biometrics,
so you get access into the company and won&apos;t need to use a badge or
card.
</Text>
</Box>
<Row className="pt-14 space-x-10">
<Box className="w-1/2">
Expand All @@ -117,7 +134,11 @@ const InfoSection = () => (
About UUFT.Ai
</Text>
<Text as="a">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus vero reiciendis quae porro, voluptates odit. Culpa ipsam beatae voluptas vitae est repudiandae, nulla atque, reiciendis labore, voluptatibus eum dolorem! Id inventore quidem ipsam impedit possimus?
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Voluptatibus vero reiciendis quae porro, voluptates odit. Culpa
ipsam beatae voluptas vitae est repudiandae, nulla atque, reiciendis
labore, voluptatibus eum dolorem! Id inventore quidem ipsam impedit
possimus?
</Text>
</Stack>
</Box>
Expand All @@ -127,7 +148,11 @@ const InfoSection = () => (
About UUFT.Ai
</Text>
<Text as="a">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus vero reiciendis quae porro, voluptates odit. Culpa ipsam beatae voluptas vitae est repudiandae, nulla atque, reiciendis labore, voluptatibus eum dolorem! Id inventore quidem ipsam impedit possimus?
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Voluptatibus vero reiciendis quae porro, voluptates odit. Culpa
ipsam beatae voluptas vitae est repudiandae, nulla atque, reiciendis
labore, voluptatibus eum dolorem! Id inventore quidem ipsam impedit
possimus?
</Text>
</Stack>
</Box>
Expand Down
4 changes: 3 additions & 1 deletion ui/src/components/SignOutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

import { signOut } from "next-auth/react";

export default () => <button onClick={() => signOut()}>Sign out</button>;
const SignOutButton = () => <button onClick={() => signOut()}>Sign out</button>;

export default SignOutButton;

0 comments on commit 7543f7b

Please sign in to comment.