diff --git a/packages/client/src/store/AccountsContextOptionsStore.js b/packages/client/src/store/AccountsContextOptionsStore.js
index 12c92e4020..4fb0d7d24d 100644
--- a/packages/client/src/store/AccountsContextOptionsStore.js
+++ b/packages/client/src/store/AccountsContextOptionsStore.js
@@ -1,4 +1,16 @@
-import ProfileReactSvgUrl from "PUBLIC_DIR/images/profile.react.svg?url";
+import PencilReactSvgUrl from "ASSETS_DIR/images/pencil.react.svg?url";
+import ChangeMailReactSvgUrl from "ASSETS_DIR/images/change.mail.react.svg?url";
+import ChangeSecurityReactSvgUrl from "ASSETS_DIR/images/change.security.react.svg?url";
+import FolderReactSvgUrl from "ASSETS_DIR/images/folder.react.svg?url";
+import EnableReactSvgUrl from "ASSETS_DIR/images/enable.react.svg?url";
+import RemoveReactSvgUrl from "ASSETS_DIR/images/remove.react.svg?url";
+import RessingDataReactSvgUrl from "ASSETS_DIR/images/ressing_data.react.svg?url";
+import DelDataReactSvgUrl from "ASSETS_DIR/images/del_data.react.svg?url";
+import TrashReactSvgUrl from "ASSETS_DIR/images/trash.react.svg?url";
+import InfoReactSvgUrl from "ASSETS_DIR/images/info.react.svg?url";
+import RestoreAuthReactSvgUrl from "ASSETS_DIR/images/restore.auth.react.svg?url";
+import DisableReactSvgUrl from "ASSETS_DIR/images/disable.react.svg?url";
+import ProfileReactSvgUrl from "PUBLIC_DIR/images/profile.react.svg?url";
import RefreshReactSvgUrl from "PUBLIC_DIR/images/refresh.react.svg?url";
import InviteAgainReactSvgUrl from "PUBLIC_DIR/images/invite.again.react.svg?url";
import ChangeToEmployeeReactSvgUrl from "PUBLIC_DIR/images/change.to.employee.react.svg?url";
@@ -62,7 +74,7 @@ class AccountsContextOptionsStore {
return {
id: "option_change-name",
key: option,
- icon: "images/pencil.react.svg",
+ icon: PencilReactSvgUrl,
label: t("PeopleTranslations:NameChangeButton"),
onClick: this.toggleChangeNameDialog,
};
@@ -70,7 +82,7 @@ class AccountsContextOptionsStore {
return {
id: "option_change-email",
key: option,
- icon: "images/change.mail.react.svg",
+ icon: ChangeMailReactSvgUrl,
label: t("PeopleTranslations:EmailChangeButton"),
onClick: () => this.toggleChangeEmailDialog(item),
};
@@ -78,7 +90,7 @@ class AccountsContextOptionsStore {
return {
id: "option_change-password",
key: option,
- icon: "images/change.security.react.svg",
+ icon: ChangeSecurityReactSvgUrl,
label: t("PeopleTranslations:PasswordChangeButton"),
onClick: () => this.toggleChangePasswordDialog(item),
};
@@ -93,7 +105,7 @@ class AccountsContextOptionsStore {
case "room-list":
return {
key: option,
- icon: "images/folder.react.svg",
+ icon: FolderReactSvgUrl,
label: "Room list",
onClick: () => this.openUserRoomList(item),
};
@@ -101,7 +113,7 @@ class AccountsContextOptionsStore {
return {
id: "option_enable",
key: option,
- icon: "images/enable.react.svg",
+ icon: EnableReactSvgUrl,
label: t("PeopleTranslations:EnableUserButton"),
onClick: () => this.onEnableClick(t, item),
};
@@ -109,7 +121,7 @@ class AccountsContextOptionsStore {
return {
id: "option_disable",
key: option,
- icon: "images/remove.react.svg",
+ icon: RemoveReactSvgUrl,
label: t("PeopleTranslations:DisableUserButton"),
onClick: () => this.onDisableClick(t, item),
};
@@ -118,7 +130,7 @@ class AccountsContextOptionsStore {
return {
id: "option_reassign-data",
key: option,
- icon: "images/ressing_data.react.svg",
+ icon: RessingDataReactSvgUrl,
label: t("PeopleTranslations:ReassignData"),
onClick: () => this.onReassignDataClick(item),
};
@@ -126,7 +138,7 @@ class AccountsContextOptionsStore {
return {
id: "option_delete-personal-data",
key: option,
- icon: "images/del_data.react.svg",
+ icon: DelDataReactSvgUrl,
label: t("PeopleTranslations:RemoveData"),
onClick: () => this.onDeletePersonalDataClick(t, item),
};
@@ -134,7 +146,7 @@ class AccountsContextOptionsStore {
return {
id: "option_delete-user",
key: option,
- icon: "images/trash.react.svg",
+ icon: TrashReactSvgUrl,
label: t("DeleteProfileEverDialog:DeleteUser"),
onClick: () => this.toggleDeleteProfileEverDialog(item),
};
@@ -143,7 +155,7 @@ class AccountsContextOptionsStore {
return {
id: "option_details",
key: option,
- icon: "images/info.react.svg",
+ icon: InfoReactSvgUrl,
label: t("Common:Info"),
onClick: this.onDetailsClick,
};
@@ -160,7 +172,7 @@ class AccountsContextOptionsStore {
return {
id: "option_reset-auth",
key: option,
- icon: "images/restore.auth.react.svg",
+ icon: RestoreAuthReactSvgUrl,
label: t("PeopleTranslations:ResetAuth"),
onClick: () => this.onResetAuth(item),
};
@@ -243,7 +255,7 @@ class AccountsContextOptionsStore {
label: t("Common:Info"),
disabled: isVisible,
onClick: () => setIsVisible(true),
- icon: "images/info.react.svg",
+ icon: InfoReactSvgUrl,
},
{
key: "cm-invite",
@@ -257,14 +269,14 @@ class AccountsContextOptionsStore {
label: t("Common:Enable"),
disabled: !hasUsersToActivate,
onClick: () => onChangeStatus(EmployeeStatus.Active),
- icon: "images/enable.react.svg",
+ icon: EnableReactSvgUrl,
},
{
key: "cm-disable",
label: t("PeopleTranslations:DisableUserButton"),
disabled: !hasUsersToDisable,
onClick: () => onChangeStatus(EmployeeStatus.Disabled),
- icon: "images/disable.react.svg",
+ icon: DisableReactSvgUrl,
},
{
key: "cm-delete",
diff --git a/packages/client/src/store/ContextOptionsStore.js b/packages/client/src/store/ContextOptionsStore.js
index ded59be09c..1ca6285388 100644
--- a/packages/client/src/store/ContextOptionsStore.js
+++ b/packages/client/src/store/ContextOptionsStore.js
@@ -1,4 +1,21 @@
-import LockedReactSvgUrl from "PUBLIC_DIR/images/locked.react.svg?url";
+import HistoryReactSvgUrl from "ASSETS_DIR/images/history.react.svg?url";
+import HistoryFinalizedReactSvgUrl from "ASSETS_DIR/images/history-finalized.react.svg?url";
+import MoveReactSvgUrl from "ASSETS_DIR/images/move.react.svg?url";
+import CheckBoxReactSvgUrl from "ASSETS_DIR/images/check-box.react.svg?url";
+import FolderReactSvgUrl from "ASSETS_DIR/images/folder.react.svg?url";
+import ReconnectSvgUrl from "ASSETS_DIR/images/reconnect.svg?url";
+import SettingsReactSvgUrl from "ASSETS_DIR/images/settings.react.svg?url";
+import FileActionsOwnerReactSvgUrl from "ASSETS_DIR/images/file.actions.owner.react.svg?url";
+import FolderLocationReactSvgUrl from "ASSETS_DIR/images/folder.location.react.svg?url";
+import TickRoundedSvgUrl from "ASSETS_DIR/images/tick.rounded.svg?url";
+import FavoritesReactSvgUrl from "ASSETS_DIR/images/favorites.react.svg?url";
+import DownloadReactSvgUrl from "ASSETS_DIR/images/download.react.svg?url";
+import DownloadAsReactSvgUrl from "ASSETS_DIR/images/download-as.react.svg?url";
+import RenameReactSvgUrl from "ASSETS_DIR/images/rename.react.svg?url";
+import RemoveSvgUrl from "ASSETS_DIR/images/remove.svg?url";
+import SubtractReactSvgUrl from "ASSETS_DIR/images/subtract.react.svg?url";
+import TrashReactSvgUrl from "ASSETS_DIR/images/trash.react.svg?url";
+import LockedReactSvgUrl from "PUBLIC_DIR/images/locked.react.svg?url";
import CopyReactSvgUrl from "PUBLIC_DIR/images/copy.react.svg?url";
import DuplicateReactSvgUrl from "PUBLIC_DIR/images/duplicate.react.svg?url";
import FormFillRectSvgUrl from "PUBLIC_DIR/images/form.fill.rect.svg?url";
@@ -505,7 +522,7 @@ class ContextOptionsStore {
id: "option_show-version-history",
key: "show-version-history",
label: t("ShowVersionHistory"),
- icon: "images/history.react.svg",
+ icon: HistoryReactSvgUrl,
onClick: () => this.showVersionHistory(item.id, item.access),
disabled: false,
},
@@ -515,13 +532,13 @@ class ContextOptionsStore {
id: "option_version",
key: "version",
label: t("VersionHistory"),
- icon: "images/history-finalized.react.svg",
+ icon: HistoryFinalizedReactSvgUrl,
items: [
{
id: "option_finalize-version",
key: "finalize-version",
label: t("FinalizeVersion"),
- icon: "images/history-finalized.react.svg",
+ icon: HistoryFinalizedReactSvgUrl,
onClick: () => this.finalizeVersion(item.id, item.access),
disabled: false,
},
@@ -529,7 +546,7 @@ class ContextOptionsStore {
id: "option_version-history",
key: "show-version-history",
label: t("ShowVersionHistory"),
- icon: "images/history.react.svg",
+ icon: HistoryReactSvgUrl,
onClick: () =>
this.showVersionHistory(item.id, item.access),
disabled: false,
@@ -542,7 +559,7 @@ class ContextOptionsStore {
id: "option_finalize-version",
key: "finalize-version",
label: t("FinalizeVersion"),
- icon: "images/history-finalized.react.svg",
+ icon: HistoryFinalizedReactSvgUrl,
onClick: () => this.finalizeVersion(item.id),
disabled: false,
},
@@ -550,7 +567,7 @@ class ContextOptionsStore {
id: "option_version-history",
key: "show-version-history",
label: t("ShowVersionHistory"),
- icon: "images/history.react.svg",
+ icon: HistoryReactSvgUrl,
onClick: () => this.showVersionHistory(item.id, item.access),
disabled: false,
},
@@ -570,7 +587,7 @@ class ContextOptionsStore {
id: "option_move-to",
key: "move-to",
label: t("MoveTo"),
- icon: "images/move.react.svg",
+ icon: MoveReactSvgUrl,
onClick: this.onMoveAction,
disabled: false,
},
@@ -598,7 +615,7 @@ class ContextOptionsStore {
id: "option_move-to",
key: "move-to",
label: t("MoveTo"),
- icon: "images/move.react.svg",
+ icon: MoveReactSvgUrl,
onClick: this.onMoveAction,
disabled: false,
},
@@ -625,7 +642,7 @@ class ContextOptionsStore {
id: "option_select",
key: "select",
label: t("Common:SelectAction"),
- icon: "images/check-box.react.svg",
+ icon: CheckBoxReactSvgUrl,
onClick: () => this.onSelect(item),
disabled: false,
},
@@ -633,7 +650,7 @@ class ContextOptionsStore {
id: "option_open",
key: "open",
label: t("Open"),
- icon: "images/folder.react.svg",
+ icon: FolderReactSvgUrl,
onClick: () => this.onOpenFolder(item),
disabled: false,
},
@@ -685,7 +702,7 @@ class ContextOptionsStore {
id: "option_reconnect-storage",
key: "reconnect-storage",
label: t("Common:ReconnectStorage"),
- icon: "images/reconnect.svg",
+ icon: ReconnectSvgUrl,
onClick: () => this.onClickReconnectStorage(item, t),
disabled: false,
},
@@ -693,7 +710,7 @@ class ContextOptionsStore {
id: "option_edit-room",
key: "edit-room",
label: t("EditRoom"),
- icon: "images/settings.react.svg",
+ icon: SettingsReactSvgUrl,
onClick: () => this.onClickEditRoom(item),
disabled: false,
},
@@ -746,7 +763,7 @@ class ContextOptionsStore {
id: "option_owner-change",
key: "owner-change",
label: t("Translations:OwnerChange"),
- icon: "images/file.actions.owner.react.svg",
+ icon: FileActionsOwnerReactSvgUrl,
onClick: this.onOwnerChange,
disabled: false,
},
@@ -783,7 +800,7 @@ class ContextOptionsStore {
id: "option_open-location",
key: "open-location",
label: t("OpenLocation"),
- icon: "images/folder.location.react.svg",
+ icon: FolderLocationReactSvgUrl,
onClick: () => this.onOpenLocation(item),
disabled: false,
},
@@ -791,7 +808,7 @@ class ContextOptionsStore {
id: "option_mark-read",
key: "mark-read",
label: t("MarkRead"),
- icon: "images/tick.rounded.svg",
+ icon: TickRoundedSvgUrl,
onClick: () => this.onClickMarkRead(item),
disabled: false,
},
@@ -799,7 +816,7 @@ class ContextOptionsStore {
id: "option_mark-as-favorite",
key: "mark-as-favorite",
label: t("MarkAsFavorite"),
- icon: "images/favorites.react.svg",
+ icon: FavoritesReactSvgUrl,
onClick: (e) => this.onClickFavorite(e, item.id, t),
disabled: false,
"data-action": "mark",
@@ -809,7 +826,7 @@ class ContextOptionsStore {
id: "option_remove-from-favorites",
key: "remove-from-favorites",
label: t("RemoveFromFavorites"),
- icon: "images/favorites.react.svg",
+ icon: FavoritesReactSvgUrl,
onClick: (e) => this.onClickFavorite(e, item.id, t),
disabled: false,
"data-action": "remove",
@@ -819,7 +836,7 @@ class ContextOptionsStore {
id: "option_download",
key: "download",
label: t("Common:Download"),
- icon: "images/download.react.svg",
+ icon: DownloadReactSvgUrl,
onClick: () => this.onClickDownload(item, t),
disabled: false,
},
@@ -827,7 +844,7 @@ class ContextOptionsStore {
id: "option_download-as",
key: "download-as",
label: t("Translations:DownloadAs"),
- icon: "images/download-as.react.svg",
+ icon: DownloadAsReactSvgUrl,
onClick: this.onClickDownloadAs,
disabled: false,
},
@@ -836,7 +853,7 @@ class ContextOptionsStore {
id: "option_restore",
key: "restore",
label: t("Common:Restore"),
- icon: "images/move.react.svg",
+ icon: MoveReactSvgUrl,
onClick: this.onMoveAction,
disabled: false,
},
@@ -844,7 +861,7 @@ class ContextOptionsStore {
id: "option_rename",
key: "rename",
label: t("Rename"),
- icon: "images/rename.react.svg",
+ icon: RenameReactSvgUrl,
onClick: () => this.onClickRename(item),
disabled: false,
},
@@ -856,7 +873,7 @@ class ContextOptionsStore {
id: "option_unsubscribe",
key: "unsubscribe",
label: t("RemoveFromList"),
- icon: "images/remove.svg",
+ icon: RemoveSvgUrl,
onClick: this.onClickUnsubscribe,
disabled: false,
},
@@ -882,7 +899,7 @@ class ContextOptionsStore {
id: "option_unarchive-room",
key: "unarchive-room",
label: t("Common:Restore"),
- icon: "images/subtract.react.svg",
+ icon: SubtractReactSvgUrl,
onClick: (e) => this.onClickArchive(e),
disabled: false,
"data-action": "unarchive",
@@ -894,7 +911,7 @@ class ContextOptionsStore {
label: isRootThirdPartyFolder
? t("Common:Disconnect")
: t("Common:Delete"),
- icon: "images/trash.react.svg",
+ icon: TrashReactSvgUrl,
onClick: () => this.onClickDelete(item, t),
disabled: false,
},
@@ -995,7 +1012,7 @@ class ContextOptionsStore {
archiveOptions = {
key: "unarchive-room",
label: t("Common:Restore"),
- icon: "images/subtract.react.svg",
+ icon: SubtractReactSvgUrl,
onClick: (e) => this.onClickArchive(e),
disabled: false,
"data-action": "unarchive",
@@ -1019,7 +1036,7 @@ class ContextOptionsStore {
options.push({
key: "delete-rooms",
label: t("Common:Delete"),
- icon: "images/trash.react.svg",
+ icon: TrashReactSvgUrl,
onClick: () => deleteRooms(t),
});
@@ -1085,7 +1102,7 @@ class ContextOptionsStore {
{
key: "mark-as-favorite",
label: t("MarkAsFavorite"),
- icon: "images/favorites.react.svg",
+ icon: FavoritesReactSvgUrl,
onClick: (e) => this.onClickFavorite(e, favoriteItemsIds, t),
disabled: !favoriteItems.length,
"data-action": "mark",
@@ -1094,7 +1111,7 @@ class ContextOptionsStore {
{
key: "remove-from-favorites",
label: t("RemoveFromFavorites"),
- icon: "images/favorites.react.svg",
+ icon: FavoritesReactSvgUrl,
onClick: (e) => this.onClickFavorite(e, removeFromFavoriteItemsIds, t),
disabled: favoriteItems.length || !removeFromFavoriteItems.length,
"data-action": "remove",
@@ -1103,7 +1120,7 @@ class ContextOptionsStore {
{
key: "download",
label: t("Common:Download"),
- icon: "images/download.react.svg",
+ icon: DownloadReactSvgUrl,
onClick: () =>
this.filesActionsStore
.downloadAction(t("Translations:ArchivingData"))
@@ -1113,14 +1130,14 @@ class ContextOptionsStore {
{
key: "download-as",
label: t("Translations:DownloadAs"),
- icon: "images/download-as.react.svg",
+ icon: DownloadAsReactSvgUrl,
onClick: this.onClickDownloadAs,
disabled: !downloadAs,
},
{
key: "move-to",
label: t("MoveTo"),
- icon: "images/move.react.svg",
+ icon: MoveReactSvgUrl,
onClick: this.onMoveAction,
disabled: isRecycleBinFolder || !moveItems,
},
@@ -1134,7 +1151,7 @@ class ContextOptionsStore {
{
key: "restore",
label: t("Common:Restore"),
- icon: "images/move.react.svg",
+ icon: MoveReactSvgUrl,
onClick: this.onMoveAction,
disabled: !isRecycleBinFolder || !restoreItems,
},
@@ -1146,7 +1163,7 @@ class ContextOptionsStore {
{
key: "delete",
label: t("Common:Delete"),
- icon: "images/trash.react.svg",
+ icon: TrashReactSvgUrl,
onClick: () => {
if (this.settingsStore.confirmDelete) {
setDeleteDialogVisible(true);
diff --git a/packages/client/src/store/FilesActionsStore.js b/packages/client/src/store/FilesActionsStore.js
index 163a3476d6..3566d4b22c 100644
--- a/packages/client/src/store/FilesActionsStore.js
+++ b/packages/client/src/store/FilesActionsStore.js
@@ -1,4 +1,6 @@
-import InfoOutlineReactSvgUrl from "PUBLIC_DIR/images/info.outline.react.svg?url";
+import SubtractReactSvgUrl from "ASSETS_DIR/images/subtract.react.svg?url";
+import FavoritesReactSvgUrl from "ASSETS_DIR/images/favorites.react.svg?url";
+import InfoOutlineReactSvgUrl from "PUBLIC_DIR/images/info.outline.react.svg?url";
import CopyToReactSvgUrl from "PUBLIC_DIR/images/copyTo.react.svg?url";
import DownloadReactSvgUrl from "PUBLIC_DIR/images/download.react.svg?url";
import DownloadAsReactSvgUrl from "PUBLIC_DIR/images/downloadAs.react.svg?url";
@@ -1531,7 +1533,7 @@ class FilesActionStore {
id: "menu-unarchive",
key: "unarchive",
label: t("Common:Restore"),
- iconUrl: "images/subtract.react.svg",
+ iconUrl: SubtractReactSvgUrl,
onClick: () => this.archiveRooms("unarchive"),
disabled: false,
};
@@ -1691,7 +1693,7 @@ class FilesActionStore {
.set("delete", {
label: t("RemoveFromFavorites"),
alt: t("RemoveFromFavorites"),
- iconUrl: "images/favorites.react.svg",
+ iconUrl: FavoritesReactSvgUrl,
onClick: () => {
const items = selection.map((item) => item.id);
this.setFavoriteAction("remove", items)
diff --git a/packages/client/src/store/PeopleStore.js b/packages/client/src/store/PeopleStore.js
index 00c43c65c6..7f7ac59723 100644
--- a/packages/client/src/store/PeopleStore.js
+++ b/packages/client/src/store/PeopleStore.js
@@ -1,4 +1,7 @@
-import ChangeToEmployeeReactSvgUrl from "PUBLIC_DIR/images/change.to.employee.react.svg?url";
+import InfoReactSvgUrl from "ASSETS_DIR/images/info.react.svg?url";
+import EnableReactSvgUrl from "ASSETS_DIR/images/enable.react.svg?url";
+import DisableReactSvgUrl from "ASSETS_DIR/images/disable.react.svg?url";
+import ChangeToEmployeeReactSvgUrl from "PUBLIC_DIR/images/change.to.employee.react.svg?url";
import InviteAgainReactSvgUrl from "PUBLIC_DIR/images/invite.again.react.svg?url";
import DeleteReactSvgUrl from "PUBLIC_DIR/images/delete.react.svg?url";
import { makeAutoObservable } from "mobx";
@@ -247,7 +250,7 @@ class PeopleStore {
isVisible ||
!(isTablet() || isMobile() || isMobileRDD || !isDesktop()),
onClick: (item) => this.onOpenInfoPanel(item),
- iconUrl: "images/info.react.svg",
+ iconUrl: InfoReactSvgUrl,
},
{
id: "menu-invite",
@@ -263,7 +266,7 @@ class PeopleStore {
label: t("Common:Enable"),
disabled: !hasUsersToActivate,
onClick: () => this.onChangeStatus(EmployeeStatus.Active),
- iconUrl: "images/enable.react.svg",
+ iconUrl: EnableReactSvgUrl,
},
{
id: "menu-disable",
@@ -271,7 +274,7 @@ class PeopleStore {
label: t("PeopleTranslations:DisableUserButton"),
disabled: !hasUsersToDisable,
onClick: () => this.onChangeStatus(EmployeeStatus.Disabled),
- iconUrl: "images/disable.react.svg",
+ iconUrl: DisableReactSvgUrl,
},
{
id: "menu-delete",
diff --git a/packages/client/src/store/ThirdPartyStore.js b/packages/client/src/store/ThirdPartyStore.js
index d9eb82f3eb..4066c8dd7a 100644
--- a/packages/client/src/store/ThirdPartyStore.js
+++ b/packages/client/src/store/ThirdPartyStore.js
@@ -1,3 +1,23 @@
+import IconBoxSmallReactSvgUrl from "ASSETS_DIR/images/icon_box_small.react.svg?url";
+import IconBoxReactSvgUrl from "ASSETS_DIR/images/icon_box.react.svg?url";
+import IconDropboxSmallReactSvgUrl from "ASSETS_DIR/images/icon_dropbox_small.react.svg?url";
+import IconDropboxReactSvgUrl from "ASSETS_DIR/images/icon_dropbox.react.svg?url";
+import IconGoogleDriveSmallReactSvgUrl from "ASSETS_DIR/images/icon_google_drive_small.react.svg?url";
+import IconGoogleDriveReactSvgUrl from "ASSETS_DIR/images/icon_google_drive.react.svg?url";
+import IconOnedriveSmallReactSvgUrl from "ASSETS_DIR/images/icon_onedrive_small.react.svg?url";
+import IconOnedriveReactSvgUrl from "ASSETS_DIR/images/icon_onedrive.react.svg?url";
+import IconSharepointSmallReactSvgUrl from "ASSETS_DIR/images/icon_sharepoint_small.react.svg?url";
+import IconSharepointReactSvgUrl from "ASSETS_DIR/images/icon_sharepoint.react.svg?url";
+import IconKdriveSmallReactSvgUrl from "ASSETS_DIR/images/icon_kdrive_small.react.svg?url";
+import IconKdriveReactSvgUrl from "ASSETS_DIR/images/icon_kdrive.react.svg?url";
+import IconYandexDiskSmallReactSvgUrl from "ASSETS_DIR/images/icon_yandex_disk_small.react.svg?url";
+import IconYandexDiskReactSvgUrl from "ASSETS_DIR/images/icon_yandex_disk.react.svg?url";
+import IconOwncloudSmallReactSvgUrl from "ASSETS_DIR/images/icon_owncloud_small.react.svg?url";
+import IconOwncloudReactSvgUrl from "ASSETS_DIR/images/icon_owncloud.react.svg?url";
+import IconNextcloudSmallReactSvgUrl from "ASSETS_DIR/images/icon_nextcloud_small.react.svg?url";
+import IconNextcloudReactSvgUrl from "ASSETS_DIR/images/icon_nextcloud.react.svg?url";
+import IconWebdavSmallReactSvgUrl from "ASSETS_DIR/images/icon_webdav_small.react.svg?url";
+import IconWebdavReactSvgUrl from "ASSETS_DIR/images/icon_webdav.react.svg?url";
import { makeAutoObservable } from "mobx";
import api from "@docspace/common/api";
@@ -92,38 +112,38 @@ class ThirdPartyStore {
getThirdPartyIcon = (iconName, size = "big") => {
switch (iconName) {
case "Box":
- if (size === "small") return "images/icon_box_small.react.svg";
- return "images/icon_box.react.svg";
+ if (size === "small") return IconBoxSmallReactSvgUrl;
+ return IconBoxReactSvgUrl;
case "DropboxV2":
- if (size === "small") return "images/icon_dropbox_small.react.svg";
- return "images/icon_dropbox.react.svg";
+ if (size === "small") return IconDropboxSmallReactSvgUrl;
+ return IconDropboxReactSvgUrl;
case "GoogleDrive":
- if (size === "small") return "images/icon_google_drive_small.react.svg";
- return "images/icon_google_drive.react.svg";
+ if (size === "small") return IconGoogleDriveSmallReactSvgUrl;
+ return IconGoogleDriveReactSvgUrl;
case "OneDrive":
- if (size === "small") return "images/icon_onedrive_small.react.svg";
- return "images/icon_onedrive.react.svg";
+ if (size === "small") return IconOnedriveSmallReactSvgUrl;
+ return IconOnedriveReactSvgUrl;
case "SharePoint":
- if (size === "small") return "images/icon_sharepoint_small.react.svg";
- return "images/icon_sharepoint.react.svg";
+ if (size === "small") return IconSharepointSmallReactSvgUrl;
+ return IconSharepointReactSvgUrl;
case "kDrive":
- if (size === "small") return "images/icon_kdrive_small.react.svg";
- return "images/icon_kdrive.react.svg";
+ if (size === "small") return IconKdriveSmallReactSvgUrl;
+ return IconKdriveReactSvgUrl;
case "Yandex":
- if (size === "small") return "images/icon_yandex_disk_small.react.svg";
- return "images/icon_yandex_disk.react.svg";
+ if (size === "small") return IconYandexDiskSmallReactSvgUrl;
+ return IconYandexDiskReactSvgUrl;
case "OwnCloud":
- if (size === "small") return "images/icon_owncloud_small.react.svg";
- return "images/icon_owncloud.react.svg";
+ if (size === "small") return IconOwncloudSmallReactSvgUrl;
+ return IconOwncloudReactSvgUrl;
case "NextCloud":
- if (size === "small") return "images/icon_nextcloud_small.react.svg";
- return "images/icon_nextcloud.react.svg";
+ if (size === "small") return IconNextcloudSmallReactSvgUrl;
+ return IconNextcloudReactSvgUrl;
case "OneDriveForBusiness":
- if (size === "small") return "images/icon_onedrive_small.react.svg";
- return "images/icon_onedrive.react.svg";
+ if (size === "small") return IconOnedriveSmallReactSvgUrl;
+ return IconOnedriveReactSvgUrl;
case "WebDav":
- if (size === "small") return "images/icon_webdav_small.react.svg";
- return "images/icon_webdav.react.svg";
+ if (size === "small") return IconWebdavSmallReactSvgUrl;
+ return IconWebdavReactSvgUrl;
default:
return "";