-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add react helmet and titles #548
Conversation
4b453a6
to
e6c3e75
Compare
e6c3e75
to
99eec27
Compare
1168768
to
a57c686
Compare
…mpt component to prevent data loss
a57c686
to
2fcd6a7
Compare
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.
Seeing this error in the unit test
Invariant failed: You should not use <Prompt> outside a <Router>
<FormProvider {...methods}> | ||
<form tabIndex={-1} onSubmit={handleSubmit(onAdvance)}> | ||
<Helmet> | ||
<title>1098-E Information | Deductions | UsTaxes.org</title> |
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.
Would it be better for all these titles to be in one place in the Main component
Codecov Report
@@ Coverage Diff @@
## master #548 +/- ##
==========================================
+ Coverage 69.25% 71.27% +2.01%
==========================================
Files 114 116 +2
Lines 3786 3815 +29
Branches 587 595 +8
==========================================
+ Hits 2622 2719 +97
+ Misses 1150 1082 -68
Partials 14 14
Continue to review full report at Codecov.
|
* Add react helmet and titles * Move focus to fields when adding records * Add auto focus; Add sub form onSave and handleSubmit trigger; Add Prompt component to prevent data loss * Fix issues with Prompt * Remove preventDefault preventing advancing to next page * add router wrapper to test component * removing default value from W2JobInfo * removing autofocus that was causing tests to fail Co-authored-by: Aidan Grimshaw <grimshawaidan@gmail.com>
Update pages so titles are updated on transitions.