Make prettier happy

This commit is contained in:
Ryan Cavanaugh 2022-08-11 13:09:38 -07:00 committed by Labhansh Agrawal
parent af4b21cd0e
commit 8502233c74

View file

@ -91,7 +91,10 @@ function exposeDecorated<P extends Record<string, any>>(
};
}
function getDecorated<P extends Record<string, any>>(parent: React.ComponentType<P>, name: string): React.ComponentClass<P> {
function getDecorated<P extends Record<string, any>>(
parent: React.ComponentType<P>,
name: string
): React.ComponentClass<P> {
if (!decorated[name]) {
let class_ = exposeDecorated(parent);
(class_ as any).displayName = `_exposeDecorated(${name})`;