Before refactoring the Dropdowns for the Control Panels, we needed to have the xml in the getLabelFor function. This is no longer needed. However, the components using the getLabelFor function still pass the xml, even though it is not used.
- xml is not passed to the getLabelFor function
- If the components don't need the xml for other purposes, it is also removed as Component prop