Skip to content

Conversation

rifaq-ahmer
Copy link
Contributor

Completed the React Practice Project called Expense Tracker with React having redux for state management and React Routing.
in addition to this, I have used react notify, and react modal npm package.

@rifaq-ahmer rifaq-ahmer requested a review from a team October 26, 2021 18:15
<Route path="/add-expense" exact component={AddExpense} />
</Switch>
<Footer />
</BrowserRouter>
Copy link
Contributor

Choose a reason for hiding this comment

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

prettier setting ?

display: flex;
flex-direction: column;
flex: 1;
height: 60vh;
Copy link
Contributor

Choose a reason for hiding this comment

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

group the css
cc: @coder-mezab , @Tanvir04khan , @Tauqeer-Ahmed-99

const handleSubmit = () => {
if (title === "" || amount === "" || !category) {
const notify = () => toast("Please enter complete data");
notify();
Copy link
Contributor

Choose a reason for hiding this comment

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

cant we directly call toast("Please enter complete data");

<input
placeholder="Give a name to your expenditure"
value={title}
onChange={(e) => handleTitle(e)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
onChange={(e) => handleTitle(e)}
onChange={handleTitle}

<input
placeholder="Enter Amount"
className="amount-input"
onChange={(e) => handleAmount(e)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
onChange={(e) => handleAmount(e)}
onChange={handleAmount}

<div className="modal-inner">
<label>Expense Added Successfully</label>
<img
src={require("../../assets/images/added-image.png").default}
Copy link
Contributor

Choose a reason for hiding this comment

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

why cant u import it above

import React from "react";
import "./footer.css";

const Footer = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

single statement.. implicit return ?

Copy link
Contributor

@faran4engg faran4engg left a comment

Choose a reason for hiding this comment

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

Very dufficult to review poorly formatted code. Next time if its like this, No one would review !!

Screenshot 2021-10-27 at 11 02 44 PM

Copy link
Contributor

@faran4engg faran4engg left a comment

Choose a reason for hiding this comment

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

update ?? @rifaq-ahmer

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