[Metro] Switch findByDisplayName/All to use dNameFilter

This commit is contained in:
Jack Matthews 2023-03-22 02:08:33 -04:00 committed by Beef
parent ebbfe83674
commit f5552e1ba6

View file

@ -72,7 +72,6 @@ export const findByProps: PropsFinder = (...props) => find(propsFilter(props));
export const findByPropsAll: PropsFinderAll = (...props) => findAll(propsFilter(props)); export const findByPropsAll: PropsFinderAll = (...props) => findAll(propsFilter(props));
export const findByName = (name: string, defaultExp = true) => find(nameFilter(name, defaultExp)); export const findByName = (name: string, defaultExp = true) => find(nameFilter(name, defaultExp));
export const findByNameAll = (name: string, defaultExp = true) => findAll(nameFilter(name, defaultExp)); export const findByNameAll = (name: string, defaultExp = true) => findAll(nameFilter(name, defaultExp));
// TODO: Make this use dNameFilter export const findByDisplayName = (displayName: string, defaultExp = true) => find(dNameFilter(displayName, defaultExp));
export const findByDisplayName = (displayName: string, defaultExp = true) => find(nameFilter(displayName, defaultExp)); export const findByDisplayNameAll = (displayName: string, defaultExp = true) => findAll(dNameFilter(displayName, defaultExp));
export const findByDisplayNameAll = (displayName: string, defaultExp = true) => findAll(nameFilter(displayName, defaultExp));
export const findByStoreName = (name: string) => find(storeFilter(name)); export const findByStoreName = (name: string) => find(storeFilter(name));