first commit
This commit is contained in:
12
services/web/frontend/stories/utils/arg-types.ts
Normal file
12
services/web/frontend/stories/utils/arg-types.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export const disableControlsOf = (...args: string[]) => {
|
||||
return args.reduce<Record<string, object>>((prev, cur) => {
|
||||
return {
|
||||
...prev,
|
||||
[cur]: {
|
||||
table: {
|
||||
disable: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
}, {})
|
||||
}
|
Reference in New Issue
Block a user