diff --git a/packages/ui/src/utils.tsx b/packages/ui/src/utils.tsx index 8b55cc990..27ffd0fd4 100644 --- a/packages/ui/src/utils.tsx +++ b/packages/ui/src/utils.tsx @@ -17,7 +17,8 @@ type TailwindFactory = { (c: T): ClassnameFactory; }; -export const tw = new Proxy({} as unknown as TailwindFactory, { +// eslint-ignore-next-line +export const tw = new Proxy((() => {}) as unknown as TailwindFactory, { get: (_, property: string) => twFactory(property), apply: (_, __, [el]: [React.ReactElement]) => twFactory(el) });