fides icon indicating copy to clipboard operation
fides copied to clipboard

Update `DataCategoryDropdown` component `buttonProps` type

Open TheAndrewJackson opened this issue 3 years ago • 2 comments

The recent merge of main and unified-fides-2 introduced a subtle typescript linting error but that doesn't effect runtime functionally. To get around the issue the prop object was casted as the correct type.

It would be better to properly type the buttonProps prop as MenuButtonProps instead ButtonProps. This will be more clear than casting the object to the correct type down inside the component.

These areas are a good starting point for updating this.

https://github.com/ethyca/fides/blob/5a485387d8af247ec6479e4115088cbbb8394d77/clients/admin-ui/src/features/dataset/DataCategoryDropdown.tsx#L59

and https://github.com/ethyca/fides/blob/5a485387d8af247ec6479e4115088cbbb8394d77/clients/admin-ui/src/features/dataset/DataCategoryDropdown.tsx#L25

Updating this may cause some downstream changes.

TheAndrewJackson avatar Oct 06 '22 17:10 TheAndrewJackson

@TheAndrewJackson should this be assigned to you?

rsilvery avatar Oct 12 '22 14:10 rsilvery

@rsilvery Yes, I think that makes the most sense. I'll assign it to myself now 👍

TheAndrewJackson avatar Oct 12 '22 14:10 TheAndrewJackson

As discussed on #1510, this update is no longer needed.

TheAndrewJackson avatar Oct 24 '22 19:10 TheAndrewJackson