Removing icons in favor of icon font

This commit is contained in:
James Barnsley
2018-05-13 16:03:51 +12:00
parent d5108822a6
commit 9d398e53c9
87 changed files with 985 additions and 9515 deletions

View File

@ -105,39 +105,6 @@ export function set(data){
}
}
export function getIcon(name){
return (dispatch, getState) => {
var config = {
method: 'GET',
timeout: 15000,
url: 'assets/icons/'+name+'.svg'
}
$.ajax(config).then(
response => {
dispatch({
type: 'ICON_LOADED',
key: name,
icon: new XMLSerializer().serializeToString(response)
})
},
(xhr, status, error) => {
dispatch(
handleException(
'Could not load '+name+' icon',
{
config: config,
xhr: xhr,
status: status,
error: error
}
)
);
}
)
}
}
/**
* Modal