-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename isSimpleComponent -> componentRendersItsOwnValidationErrors
Explains better how the function is used. Also fix some minor type issues. New interface IComponentProps Previously all components had their own interface. It is better when all share the common props from GenericComponent ``` export interface IComponentProps extends IGenericComponentProps { handleDataChange: (value: string, key?:string) => void, handleFocusUpdate: (componentId: string, step?: number) => void, getTextResource: (key: string) => React.ReactNode, getTextResourceAsString: (key: string) => string, formData: any, isValid: boolean, language: any, shouldFocus: boolean, text: React.ReactNode, label: ()=>JSX.Element, legend: ()=>JSX.Element, }; ``` Make formData type stable and use .simpleBinding everywhere Use React.ReactNode as type for getTextResource Apply formatting corrections from code review Co-authored-by: Steffen Lorang Ekeberg <steffen.ekeberg@gmail.com> Use a proper key for AltinnMobileTable Rename componentRendersItsOwnValidationErrors => componentValidationsHandledByGenericComponent Fix missing `?.simpleBinding` in Components Remove ITextAreaComponentProps to fix @typescript-eslint/no-empty-interface
- Loading branch information
Showing
47 changed files
with
185 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.