Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the functionality and maintainability of the frontend components. The most important changes involve refactoring how state and props are handled in various components, as well as enhancing the user experience by adding new features and fixing existing issues.
State and Props Management:
frontend/src/actions/taskActions.js
: UpdatedfundingInviteTask
function to return axios promises and dispatch actions correctly. [1] [2]frontend/src/components/design-library/molecules/checkbox-terms/checkbox-terms.tsx
: AddeduseEffect
to handle theonAccept
callback when the checkbox state changes. [1] [2]frontend/src/components/design-library/molecules/checkboxes/checkboxes.tsx
: ModifiedhandleChange
to accept anonChange
callback and updated the checkbox component to use this callback. [1] [2]frontend/src/components/design-library/molecules/input-comment/input-comment.tsx
: Removedvalue
prop and managed the state internally. AddedonChange
callback to handle input changes.New Features and Enhancements:
frontend/src/components/design-library/organisms/issue-card/issue-card.tsx
: AddedReactPlaceholder
for loading state and used optional chaining for safer property access. [1] [2] [3] [4]frontend/src/components/design-library/templates/offer-drawer/offer-drawer.tsx
: Introduced new props for handling various state changes and added an email input field conditionally. [1] [2] [3] [4] [5]These changes collectively enhance the codebase by improving state management, adding new features, and ensuring better user experience through improved component interactions.