added func for getting cloudTypeIcon to filesUtils
This commit is contained in:
parent
8f5f597c5f
commit
ea5b92f1af
@ -205,3 +205,29 @@ export const connectedCloudsTypeTitleTranslation = (key, t) => {
|
||||
return key;
|
||||
}
|
||||
};
|
||||
|
||||
export const connectedCloudsTypeIcon = (key) => {
|
||||
switch (key) {
|
||||
case "GoogleDrive":
|
||||
return "/static/images/cloud.services.google.drive.react.svg";
|
||||
case "Box":
|
||||
return "/static/images/cloud.services.box.react.svg";
|
||||
case "DropboxV2":
|
||||
return "/static/images/cloud.services.dropbox.react.svg";
|
||||
case "OneDrive":
|
||||
return "/static/images/cloud.services.onedrive.react.svg";
|
||||
case "SharePoint":
|
||||
return "/static/images/cloud.services.onedrive.react.svg";
|
||||
case "kDrive":
|
||||
return "/static/images/cloud.services.kdrive.react.svg";
|
||||
case "Yandex":
|
||||
return "/static/images/cloud.services.yandex.react.svg";
|
||||
case "NextCloud":
|
||||
return "/static/images/cloud.services.nextcloud.react.svg";
|
||||
case "OwnCloud":
|
||||
return "/static/images/catalog.folder.react.svg";
|
||||
case "WebDav":
|
||||
return "/static/images/cloud.services.webdav.react.svg";
|
||||
default:
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user