Skip to content
Snippets Groups Projects
Verified Commit 73d8f9f2 authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Rename LoginForm into SignInForm

parent 9f6d84f3
No related branches found
No related tags found
1 merge request!12Install react-router and rename LoginForm into SignInForm
Pipeline #11501 failed
import React, { FC, useEffect } from 'react';
import Container from '@material-ui/core/Container';
import { LoginForm } from './LoginForm/LoginForm';
import { SignInForm } from './SignInForm/SignInForm';
export const AuthUser: FC = () => {
useEffect(() => {
......@@ -10,7 +10,7 @@ export const AuthUser: FC = () => {
}, []);
return (
<Container maxWidth="sm">
<LoginForm />
<SignInForm />
</Container>
);
};
---
name: LoginForm
name: SignInForm
---
import { LoginForm } from './LoginForm.tsx';
import { SignInForm } from './SignInForm.tsx';
# LoginForm
# SignInForm
Lets registered user authenticate
<LoginForm />
\ No newline at end of file
<SignInForm />
\ No newline at end of file
import React from 'react';
import { render, fireEvent } from '@testing-library/react';
import { LoginForm } from './LoginForm';
import { SignInForm } from './SignInForm';
describe('<LoginForm />', () => {
describe('<SignInForm />', () => {
it('it should render form', () => {
const wrapper = render(<LoginForm />);
expect(wrapper.queryByTestId('LoginForm')).toBeTruthy();
const wrapper = render(<SignInForm />);
expect(wrapper.queryByTestId('SignInForm')).toBeTruthy();
});
});
......@@ -21,7 +21,7 @@ const useStyles = makeStyles((theme: Theme) =>
}),
);
export const LoginForm: React.FC = () => {
export const SignInForm: React.FC = () => {
interface formData {
email: string;
password: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment