Change Login Page Background Image (#3344)

* Change Login Page Background Image

* Fix failing test
This commit is contained in:
Sachin Chaurasiya 2022-03-10 12:23:00 +05:30 committed by GitHub
parent e03b16f023
commit 6720fa9569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 733 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

View File

@ -38,7 +38,7 @@ jest.mock(
<div data-testid="PageContainer">{children}</div>
);
jest.mock('../../assets/img/login-bg.jpeg', () => 'login-bg.jpeg');
jest.mock('../../assets/img/login-bg.png', () => 'login-bg.png');
jest.mock('./LoginCarousel', () =>
jest.fn().mockReturnValue(<p>LoginCarousel</p>)

View File

@ -16,7 +16,7 @@ import { observer } from 'mobx-react';
import React from 'react';
import { useHistory } from 'react-router-dom';
import appState from '../../AppState';
import loginBG from '../../assets/img/login-bg.jpeg';
import loginBG from '../../assets/img/login-bg.png';
import { useAuthContext } from '../../auth-provider/AuthProvider';
import LoginButton from '../../components/LoginButton/LoginButton';
import { ROUTES } from '../../constants/constants';