Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't merge: code review #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

don't merge: code review #39

wants to merge 1 commit into from

Conversation

Sumeetrana
Copy link
Collaborator

PLEASE DON'T MERGE THIS BRANCH. THIS IS JUST TO REVIEW COMMENTS.

Copy link
Collaborator Author

@Sumeetrana Sumeetrana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PLEASE DON'T MERGE THIS BRANCH


.read-the-docs {
color: #888;
} */
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented css if not needed

// import Products from "./Pages/Product Page/Products";

// import Homepage from "./Pages/Homepage/Homepage";
// import Products from "./Pages/Product Page/Products";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments if not needed

return (
<div className="App">
<Navbar_main />

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra space

const [user, setUser] = useState("");
const [otp, setOtp] = useState("");
const [error, setError] = useState("");
const [loading, setisLoading] = useState(false);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setIsLoading

{
size: "invisible",
callback: (response) => {
// onSignup();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment if not needed

import { createContext } from 'react';


// import cartProducts from "../db.json"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unnecessary comments

{/* <Text py="15px" >Shipping Charge : &nbsp;&nbsp; ₹50</Text> */}
{/* <Text pb="15px">
total M.R.P : &nbsp;&nbsp; {totalamount + shipingcharge}
</Text> */}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unnecessary comments

import { useContext } from "react";
import { CartContext } from "../context/CartContext";

const Items = ({ id, title, Quantity, price, img }) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Give a proper name to your components. It should be readable and determining what this component is about

import { useContext } from "react";

import { CartContext } from "../context/CartContext";
// import { addtoCart } from "../redux/cart.action";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unnecessary comments

// import { addtoCart } from "../redux/cart.action";



Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants