Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render() {
- const { familyInfo, readOnly, ...rest } = this.props;
- const flatFamilyInfo = this.flattenData(this.props.familyInfo);
- return readOnly ? (
- <ReadMode familyInfo={flatFamilyInfo} {...rest} />
- ) : (
- <FamilyFormEdit familyInfo={flatFamilyInfo} {...rest} />
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement