feat files: Create files and Directories
fix styles.shadows: Follow Material Design's shadow and elevation guide, I like it. 😍
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import store from 'store';
|
||||
import { show } from 'actions/dialog';
|
||||
|
||||
export function type(obj) {
|
||||
return Object.prototype.toString.call(obj).slice(8, -1);
|
||||
@ -23,3 +24,8 @@ export function getKey(object = store.getState().toJS(), key) {
|
||||
|
||||
return parent;
|
||||
}
|
||||
|
||||
export function reportError(err) {
|
||||
let action = show('errorDialog', {description: err.message});
|
||||
store.dispatch(action);
|
||||
}
|
||||
|
Reference in New Issue
Block a user