✨ Create context menu new icons
Co-authored-by: Monta <monta@HP-ProBook-445-14-inch-G9-Notebook-PC-505aadfc.localdomain>
This commit is contained in:
@@ -332,5 +332,8 @@
|
|||||||
"scenes.app.shared_with_me.name": "Name",
|
"scenes.app.shared_with_me.name": "Name",
|
||||||
"scenes.app.shared_with_me.shared_by": "Shared by",
|
"scenes.app.shared_with_me.shared_by": "Shared by",
|
||||||
"scenes.app.shared_with_me.shared_date": "Shared date",
|
"scenes.app.shared_with_me.shared_date": "Shared date",
|
||||||
"scenes.app.shared_with_me.edit": "Edit"
|
"scenes.app.shared_with_me.edit": "Edit",
|
||||||
|
"ONLYOFFICE Word Document": "Create a Document",
|
||||||
|
"ONLYOFFICE Excel Document": "Create a Spreadsheet",
|
||||||
|
"ONLYOFFICE PowerPoint Document": "Create a Presentation"
|
||||||
}
|
}
|
||||||
@@ -331,5 +331,8 @@
|
|||||||
"scenes.app.shared_with_me.shared_by": "Partagé par",
|
"scenes.app.shared_with_me.shared_by": "Partagé par",
|
||||||
"scenes.app.shared_with_me.shared_date": "Date de partage",
|
"scenes.app.shared_with_me.shared_date": "Date de partage",
|
||||||
"scenes.app.shared_with_me.edit": "Modifier",
|
"scenes.app.shared_with_me.edit": "Modifier",
|
||||||
"components.item_context_menu.manage_users": "Gérer les utilisateurs"
|
"components.item_context_menu.manage_users": "Gérer les utilisateurs",
|
||||||
|
"ONLYOFFICE Word Document": "Créer un document",
|
||||||
|
"ONLYOFFICE Excel Document": "Créer une feuille de calcul",
|
||||||
|
"ONLYOFFICE PowerPoint Document": "Créer une présentation"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -330,5 +330,8 @@
|
|||||||
"scenes.app.shared_with_me.name": "Название",
|
"scenes.app.shared_with_me.name": "Название",
|
||||||
"scenes.app.shared_with_me.shared_by": "Кто открыл доступ",
|
"scenes.app.shared_with_me.shared_by": "Кто открыл доступ",
|
||||||
"scenes.app.shared_with_me.shared_date": "Дата предоставления доступа",
|
"scenes.app.shared_with_me.shared_date": "Дата предоставления доступа",
|
||||||
"scenes.app.shared_with_me.edit": "Редактировать"
|
"scenes.app.shared_with_me.edit": "Редактировать",
|
||||||
|
"ONLYOFFICE Word Document": "Создать документ",
|
||||||
|
"ONLYOFFICE Excel Document": "Создать электронную таблицу",
|
||||||
|
"ONLYOFFICE PowerPoint Document": "Создать презентацию"
|
||||||
}
|
}
|
||||||
@@ -330,5 +330,8 @@
|
|||||||
"scenes.app.shared_with_me.name": "Tên",
|
"scenes.app.shared_with_me.name": "Tên",
|
||||||
"scenes.app.shared_with_me.shared_by": "Được chia sẻ bởi",
|
"scenes.app.shared_with_me.shared_by": "Được chia sẻ bởi",
|
||||||
"scenes.app.shared_with_me.shared_date": "Ngày chia sẻ",
|
"scenes.app.shared_with_me.shared_date": "Ngày chia sẻ",
|
||||||
"scenes.app.shared_with_me.edit": "Chỉnh sửa"
|
"scenes.app.shared_with_me.edit": "Chỉnh sửa",
|
||||||
|
"ONLYOFFICE Word Document": "Tạo Tài liệu Word",
|
||||||
|
"ONLYOFFICE Excel Document": "Tạo Bảng tính Excel",
|
||||||
|
"ONLYOFFICE PowerPoint Document": "Tạo Bài thuyết trình PowerPoint"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import { slideXTransition, slideXTransitionReverted } from 'src/utils/transition
|
|||||||
import { CreateFolder } from './create-folder';
|
import { CreateFolder } from './create-folder';
|
||||||
import { CreateLink } from './create-link';
|
import { CreateLink } from './create-link';
|
||||||
import Languages from "features/global/services/languages-service";
|
import Languages from "features/global/services/languages-service";
|
||||||
|
import { FileTypeDocumentIcon, FileTypeSlidesIcon, FileTypeSpreadsheetIcon } from 'app/atoms/icons-colored';
|
||||||
|
|
||||||
export type CreateModalAtomType = {
|
export type CreateModalAtomType = {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
@@ -59,7 +60,9 @@ export const CreateModal = ({
|
|||||||
<ChevronLeftIcon className="w-6 h-6" />
|
<ChevronLeftIcon className="w-6 h-6" />
|
||||||
</A>
|
</A>
|
||||||
)}
|
)}
|
||||||
<span className="ml-2">{Languages.t('components.create_modal.create_folder_or_doc')}</span>
|
<span className="ml-2">
|
||||||
|
{Languages.t('components.create_modal.create_folder_or_doc')}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
@@ -115,15 +118,21 @@ export const CreateModal = ({
|
|||||||
return (
|
return (
|
||||||
<CreateModalOption
|
<CreateModalOption
|
||||||
key={i}
|
key={i}
|
||||||
icon={
|
icon={app.emptyFile.filename === "Untitled.docx" ? (
|
||||||
|
<FileTypeDocumentIcon className={'h-5 w-5 shrink-0 text-gray-400'} />
|
||||||
|
) : app.emptyFile.filename === "Untitled.xlsx" ? (
|
||||||
|
<FileTypeSpreadsheetIcon className={'h-5 w-5 shrink-0 text-gray-400'} />
|
||||||
|
) : app.emptyFile.filename === "Untitled.pptx" ? (
|
||||||
|
<FileTypeSlidesIcon className={'h-5 w-5 shrink-0 text-gray-400'} />
|
||||||
|
) : (
|
||||||
<Avatar
|
<Avatar
|
||||||
type="square"
|
type="square"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="w-5 h-5"
|
className="w-5 h-5"
|
||||||
avatar={app.app.identity?.icon}
|
avatar={app.app.identity?.icon}
|
||||||
/>
|
/>
|
||||||
}
|
)}
|
||||||
text={`${app.emptyFile.name}`}
|
text={Languages.t(`${app.emptyFile.name}`)}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
addFromUrl(app.emptyFile.url, app.emptyFile.filename || app.emptyFile.name)
|
addFromUrl(app.emptyFile.url, app.emptyFile.filename || app.emptyFile.name)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user