mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-11 03:52:06 -04:00
ignore empty funtion for tw helper
This commit is contained in:
1 parent
f0da8b037f
commit
64bf19abc4
1 file changed
+2
-1
@@ -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