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

Fix/goals margin #138

Closed
wants to merge 2 commits into from
Closed

Fix/goals margin #138

wants to merge 2 commits into from

Conversation

RitikJaiswal75
Copy link
Contributor

@RitikJaiswal75 RitikJaiswal75 commented Aug 23, 2022

Solves issue #136

Fixed multiple issues

  • deleted package-lock.json
  • fixed margins
  • fixed errors raising on pre-commit-checks
  • Other files that were changed were automatic indentation fixes that were automatically arising due to pre-commit-checks

Files that I changed manually:

  • deleted package-lock.json (did this after talking to Vinayak and Priyansh on app call)
  • modified src/components/CreateGoalForm/DatePicker.tsx (to fix pre commit error)
  • modified src/components/ProgressBar/index.tsx (to fix pre commit error)
  • modified src/components/ShortGoalsComponent/ShortGoalsComponent.tsx (to fix this issue)

All tests for the build have been successful

@RitikJaiswal75 RitikJaiswal75 linked an issue Aug 23, 2022 that may be closed by this pull request
@@ -37,7 +37,7 @@ const Card = ({ item, posStyle, changecard, removeCard }: props) => {
useEffect(() => {
// Clear the interval when the component unmounts
return () => clearTimeout(timerRef);
}, []);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

why did we remove the empty brackets?

if we put an empty [], code inside useEffect it runs only once. Without empty [], the code inside the useEffect runs on every render

@RitikJaiswal75 RitikJaiswal75 marked this pull request as draft August 28, 2022 16:08
@RitikJaiswal75 RitikJaiswal75 closed this by deleting the head repository Oct 16, 2022
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.

Fix margin
2 participants