Skip to content

Commit

Permalink
add FormRegisterAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
arthursvpb committed Sep 3, 2022
1 parent cadd27e commit 83a4e59
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/src/components/FormRegister/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { Form } from 'antd';

import { FormRegisterPatient } from '../FormRegisterPatient';
import { FormRegisterSession } from '../FormRegisterSession';
import { FormRegisterAuth } from '../FormRegisterAuth';

export const FormRegister = ({ formType }) => {
const formTypes = {
patient: <FormRegisterPatient />,
session: <FormRegisterSession />,
login: '',
signup: '',
auth: <FormRegisterAuth />,
};

return (
Expand Down
9 changes: 9 additions & 0 deletions web/src/components/FormRegisterAuth/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Form, Input } from 'antd';

export const FormRegisterAuth = () => {
return (
<Form.Item>
<Input placeholder="Full Name" />
</Form.Item>
);
};
4 changes: 3 additions & 1 deletion web/src/pages/signup/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { FormRegister } from "../../components/FormRegister";

export const Signup = () => {
return <h1>Signup</h1>;
return <FormRegister formType="auth" />;
};

0 comments on commit 83a4e59

Please sign in to comment.