diff --git a/packages/ui/src/icons/dropdown-icon.tsx b/packages/ui/src/icons/dropdown-icon.tsx new file mode 100644 index 000000000..ed375d117 --- /dev/null +++ b/packages/ui/src/icons/dropdown-icon.tsx @@ -0,0 +1,15 @@ +import * as React from "react"; + +import { ISvgIcons } from "./type"; + +export const DropdownIcon: React.FC = ({ className = "text-current", ...rest }) => ( + + + +); diff --git a/packages/ui/src/icons/index.ts b/packages/ui/src/icons/index.ts index 0cd98fe61..3d44e77f3 100644 --- a/packages/ui/src/icons/index.ts +++ b/packages/ui/src/icons/index.ts @@ -21,3 +21,5 @@ export * from "./related-icon"; export * from "./side-panel-icon"; export * from "./transfer-icon"; export * from "./info-icon"; +export * from "./relations-icon"; +export * from "./dropdown-icon"; diff --git a/packages/ui/src/icons/relations-icon.tsx b/packages/ui/src/icons/relations-icon.tsx new file mode 100644 index 000000000..0f17da6dd --- /dev/null +++ b/packages/ui/src/icons/relations-icon.tsx @@ -0,0 +1,25 @@ +import * as React from "react"; + +import { ISvgIcons } from "./type"; + +export const RelationsIcon: React.FC = ({ className = "text-current", ...rest }) => ( + + + + + + + + + +); diff --git a/web/core/components/icons/attachment/attachment-icon.tsx b/web/core/components/icons/attachment/attachment-icon.tsx index f0db80e44..61835abab 100644 --- a/web/core/components/icons/attachment/attachment-icon.tsx +++ b/web/core/components/icons/attachment/attachment-icon.tsx @@ -16,44 +16,44 @@ import { VideoIcon, } from "@/components/icons/attachment"; -export const getFileIcon = (fileType: string) => { +export const getFileIcon = (fileType: string, size: number = 28) => { switch (fileType) { case "pdf": - return ; + return ; case "csv": - return ; + return ; case "xlsx": - return ; + return ; case "css": - return ; + return ; case "doc": - return ; + return ; case "fig": - return ; + return ; case "html": - return ; + return ; case "png": - return ; + return ; case "jpg": - return ; + return ; case "js": - return ; + return ; case "txt": - return ; + return ; case "svg": - return ; + return ; case "mp3": - return ; + return ; case "wav": - return ; + return ; case "mp4": - return ; + return ; case "wmv": - return ; + return ; case "mkv": - return ; + return ; default: - return ; + return ; } }; diff --git a/web/core/components/issues/attachment/attachment-detail.tsx b/web/core/components/issues/attachment/attachment-detail.tsx index c89b6f574..224ac8ef3 100644 --- a/web/core/components/issues/attachment/attachment-detail.tsx +++ b/web/core/components/issues/attachment/attachment-detail.tsx @@ -58,7 +58,7 @@ export const IssueAttachmentsDetail: FC = observer((pro
-
{getFileIcon(getFileExtension(attachment.asset))}
+
{getFileIcon(getFileExtension(attachment.asset), 28)}