mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 05:45:01 -04:00
ignore empty funtion for tw helper
This commit is contained in:
@@ -17,7 +17,8 @@ type TailwindFactory = {
|
||||
<T>(c: T): ClassnameFactory<T>;
|
||||
};
|
||||
|
||||
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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user