Move to methods, normalized particles to show/to scroll
This commit is contained in:
@@ -7,3 +7,7 @@ export const get = (object, fieldName, defaultValue) => {
|
||||
}
|
||||
return defaultValue
|
||||
}
|
||||
|
||||
export const switcher = (description) => (key) => {
|
||||
description[key] && description[key]()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user