-
Notifications
You must be signed in to change notification settings - Fork 1
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: [Filing home] Update layout design #533
Conversation
Added post-mvp tickets: |
return <LoadingContent />; | ||
|
||
// TODO: Implement logic to derive current filing period based on current date | ||
// https://github.com/cfpb/sbl-frontend/issues/546 |
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.
import { DateTime } from 'luxon';
// Formatting: https://github.com/moment/luxon/blob/master/docs/formatting.md
const currentYear = DateTime.now().toFormat('y');
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.
@shindigira The filing periods endpoint includes start/end/due dates for each filing period, so it may not be as simple as just "the current year"...or it might be, we'll need to check with the Regs folks.
On HMDA they also have Quarterly filing periods, which I don't think applies to SBL but is another item to verify with the Regs folks.
[
{
"code": "string",
"description": "string",
"start_period": "2024-05-21T20:49:34.045Z",
"end_period": "2024-05-21T20:49:34.045Z",
"due": "2024-05-21T20:49:34.045Z",
"filing_type": "ANNUAL"
}
]
} | ||
/> | ||
<DisplayErrors | ||
errors={!!associatedInstitutionsError || !!filingPeriodsError} |
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.
Not critical but maybe you want to change the prop's name to "boolean language" such as hasErrors
.
Approved; only have non-critical nit feedback. Did not review content and styling. |
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.
The content will be good after all these get merged, so this one is good!
Part of #492
Changes
Screenshots