-
Notifications
You must be signed in to change notification settings - Fork 0
Rifaq expense list feature #6
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
base: master
Are you sure you want to change the base?
Conversation
<Route path="/add-expense" exact component={AddExpense} /> | ||
</Switch> | ||
<Footer /> | ||
</BrowserRouter> |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onChange={(e) => handleTitle(e)} | |
onChange={handleTitle} |
<input | ||
placeholder="Enter Amount" | ||
className="amount-input" | ||
onChange={(e) => handleAmount(e)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onChange={(e) => handleAmount(e)} | |
onChange={handleAmount} |
<div className="modal-inner"> | ||
<label>Expense Added Successfully</label> | ||
<img | ||
src={require("../../assets/images/added-image.png").default} |
There was a problem hiding this comment.
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 = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single statement.. implicit return ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update ?? @rifaq-ahmer
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.