Skip to content

Commit

Permalink
Use SVG icons
Browse files Browse the repository at this point in the history
  • Loading branch information
twinkarma committed Jul 26, 2024
1 parent 062c065 commit eedfc10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Binary file removed src/components/NavBar/images/tools/fileDownload.png
Binary file not shown.
7 changes: 4 additions & 3 deletions src/components/NavItems/Assistant/AssistantRuleBook.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import analysisIconOff from "../../NavBar/images/tools/video_logoOff.png";
import keyframesIconOff from "../../NavBar/images/tools/keyframesOff.png";
import thumbnailsIconOff from "../../NavBar/images/tools/youtubeOff.png";
Expand All @@ -6,7 +7,7 @@ import metadataIconOff from "../../NavBar/images/tools/metadataOff.png";
import videoRightsIconOff from "../../NavBar/images/tools/copyrightOff.png";
import forensicIconOff from "../../NavBar/images/tools/forensic_logoOff.png";
import videoIconOff from "../../NavBar/images/tools/video_logoOff.png";
import downloadIconOff from "../../NavBar/images/tools/fileDownload.png";
import DownloadIcon from "@mui/icons-material/Download";

export const NE_SUPPORTED_LANGS = ["en", "pt", "fr", "de", "el", "es", "it"];

Expand Down Expand Up @@ -236,7 +237,7 @@ export const ASSISTANT_ACTIONS = [
},
{
title: "assistant_video_download_generic",
icon: downloadIconOff,
icon: <DownloadIcon color="disabled" fontSize="large" />,
linksAccepted: [
KNOWN_LINKS.YOUTUBESHORTS,
KNOWN_LINKS.INSTAGRAM,
Expand All @@ -255,7 +256,7 @@ export const ASSISTANT_ACTIONS = [
},
{
title: "assistant_video_download_tiktok",
icon: downloadIconOff,
icon: <DownloadIcon color="disabled" fontSize="large" />,
linksAccepted: [KNOWN_LINKS.TIKTOK],
cTypes: [CONTENT_TYPE.VIDEO],
exceptions: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ const AssistantProcessUrlActions = () => {
<Card className={classes.assistantHover} variant={"outlined"}>
<ListItem onClick={() => handleClick(action)}>
<ListItemAvatar>
<Avatar variant={"square"} src={action.icon} />
{typeof action.icon === "string" && (
<Avatar variant={"square"} src={action.icon} />
)}
{typeof action.icon !== "string" && action.icon}
</ListItemAvatar>
<ListItemText
primary={
Expand Down

0 comments on commit eedfc10

Please sign in to comment.