mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 14:33:34 +00:00
ignore empty funtion for tw helper
This commit is contained in:
parent
f0da8b037f
commit
64bf19abc4
|
@ -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)
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue