From 998dea27cc443e25c3794a8657c5d0a42b1f64ac Mon Sep 17 00:00:00 2001 From: "nipa.das" <nipa.das@niveussolutions.com> Date: Tue, 11 Jan 2022 08:13:35 +0530 Subject: [PATCH] Review Teams Code and modify few things --- src/App.js | 2 -- src/components/Social_buttons/Index.jsx | 8 ++++---- src/components/index.js | 4 ++-- src/containers/Login/index.jsx | 11 +---------- 4 files changed, 7 insertions(+), 18 deletions(-) diff --git a/src/App.js b/src/App.js index 8e79aaf..7129b14 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,3 @@ - -import Button from './components/Button/index' import React, { lazy, Suspense } from "react"; import { BrowserRouter, Route, Routes } from "react-router-dom"; diff --git a/src/components/Social_buttons/Index.jsx b/src/components/Social_buttons/Index.jsx index 48cb6b2..e02aa5b 100644 --- a/src/components/Social_buttons/Index.jsx +++ b/src/components/Social_buttons/Index.jsx @@ -3,10 +3,10 @@ import "./Social_buttons.scss"; function Social_button(props){ return ( <button onClick={props.handleClick} className="social_buttons"> -<div> -<img src={props.img} className="icon"></img> -{props.buttonName} -</div> + <div> + <img src={props.img} className="icon"></img> + {props.buttonName} + </div> </button> ); diff --git a/src/components/index.js b/src/components/index.js index f17d292..dfd77b0 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1,2 +1,2 @@ -// export { default as Button } from "./Button"; -// export{default as SearchBar} from './SearchBar' +export { default as Button } from "./Button"; +export{default as SearchBar} from './SearchBar' diff --git a/src/containers/Login/index.jsx b/src/containers/Login/index.jsx index fb13e5f..15381ca 100644 --- a/src/containers/Login/index.jsx +++ b/src/containers/Login/index.jsx @@ -1,20 +1,11 @@ import React from "react"; import PropTypes from "prop-types"; -import Button from "components/Button"; -import MenuItem from "components/Menu/MenuItem"; - - function Login(props) { - return <div>login - - </div>; + return <div>login</div>; - - - Login.propTypes = {}; } export default Login; -- GitLab