etn-ccis / blui-react-workflows

Re-usable Brightlayer UI workflows for React applications
9 stars 8 forks source link

Unable to add custom fields in AccountDetailsScreen component #644

Open nikhildeshmukh-eaton opened 1 month ago

nikhildeshmukh-eaton commented 1 month ago

We have updated to latest update of BLUI library.

Now when i am injecting children components to as below:

(para.length > 0 ? true : false)} />

Here we don't see any option to add additional fields apart from mandatory fields(name, lastName).

With the earlier version, we use to have below mechanism to pass our customComponents for Account Details screen as below: customAccountDetails={[ { component: CustomDetailsScreen }, { component: CustomDetailsScreenTwo, title: 'Job Info', instructions: 'Enter your employment information below.', }, ]}

as a prop to AuthUIContextProvider component.

Team, will it be possible to add option to add custom fields as per product requirement?

surajeaton commented 1 month ago

After the discussion with the team, to handle dynamic data coming from the custom details prop will not be feasible solution as that may vary according to each application. The best solution is to develop a custom screen and manage data.