useIconState translates primaryFill to fill in the returned object. The typing on the returned object of primaryFill: string | undefined is technically not wrong, but was misleading.
This change fixes the intended logic to read primaryFill directly from the props.
useIconState
translatesprimaryFill
tofill
in the returned object. The typing on the returned object ofprimaryFill: string | undefined
is technically not wrong, but was misleading.This change fixes the intended logic to read
primaryFill
directly from theprops
.