The ProfileLink component currently spreads all props to the button element, including custom props like subNav and returnUrl that are not valid HTML button attributes. This should be refactored to explicitly extract these custom props before spreading the remaining valid HTML attributes.
Context:
Acceptance Criteria:
- Custom props (
subNav, returnUrl) should be extracted from props
- Only valid HTML button attributes should be spread to the button element
- Component functionality should remain unchanged
The ProfileLink component currently spreads all props to the button element, including custom props like
subNavandreturnUrlthat are not valid HTML button attributes. This should be refactored to explicitly extract these custom props before spreading the remaining valid HTML attributes.Context:
Acceptance Criteria:
subNav,returnUrl) should be extracted from props