Improve description of some finds

This commit is contained in:
Nuckyz 2024-05-07 06:28:43 -03:00
parent 9cd20e3cea
commit c65e1f88d2
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -281,7 +281,7 @@ export function findExportedComponent<T extends object = any>(...props: string[]
}
/**
* Find the first component that includes all the given code.
* Find the first component in a default export that includes all the given code.
*
* @example findComponentByCode(".Messages.USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR")
* @example findComponentByCode(".Messages.USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR", ".BACKGROUND_PRIMARY)", ColorPicker => React.memo(ColorPicker))
@ -319,7 +319,7 @@ export function findByProps<T = any>(...props: string[]) {
}
/**
* Find the first export that includes all the given code.
* Find the first default export that includes all the given code.
*
* @param code A list of code to search each export for
*/