Skip to content

Commit

Permalink
fix:best practices followed
Browse files Browse the repository at this point in the history
  • Loading branch information
sambit-sankalp committed Sep 27, 2021
1 parent 16082b8 commit bc54db2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/AuthSection/AddCode.jsx
Expand Up @@ -18,7 +18,7 @@ const AddCode = () => {
const classes = useStyles();
const [open, setOpen] = useState(false);

const handleClickOpen = () => {
const handleOpen = () => {
setOpen(true);
};

Expand All @@ -27,7 +27,7 @@ const AddCode = () => {
};
return (
<div>
<IconButton className={classes.icon} onClick={handleClickOpen} aria-label='add' size='large'>
<IconButton className={classes.icon} onClick={handleOpen} aria-label='add' size='large'>
<Add />
</IconButton>

Expand Down
2 changes: 1 addition & 1 deletion src/components/AuthSection/AuthComponent.jsx
Expand Up @@ -5,7 +5,7 @@ import { LoginCard, ProfileCard } from '.';

const AuthComponent = () => {
const [login] = useState(false);
return <div>{login ? <ProfileCard /> : <LoginCard />}</div>;
return <>{login ? <ProfileCard /> : <LoginCard />}</>;
};

export default AuthComponent;

0 comments on commit bc54db2

Please sign in to comment.