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:
Mahdi Dibaiee
2015-09-04 14:57:45 +04:30
parent 100dc03813
commit 13564f5448
15 changed files with 186 additions and 56 deletions

View File

@ -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);
}