Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/components/NavItems/Assistant/Assistant.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ const Assistant = () => {
);

const dbkfTextMatch = useSelector((state) => state.assistant.dbkfTextMatch);
const dbkfImageResult = useSelector(
(state) => state.assistant.dbkfImageMatch,
);
const dbkfVideoMatch = useSelector((state) => state.assistant.dbkfVideoMatch);

// third party fail states
const scFailState = useSelector((state) => state.assistant.inputSCFail);
Expand Down Expand Up @@ -487,10 +483,7 @@ const Assistant = () => {
<CardContent>
<Grid container spacing={4}>
{/* warnings and api status checks */}
{dbkfTextMatch ||
dbkfImageResult ||
dbkfVideoMatch ||
prevFactChecksResult ? (
{dbkfTextMatch || prevFactChecksResult ? (
<Grid
size={{ xs: 12 }}
className={classes.assistantGrid}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ import CardHeader from "@mui/material/CardHeader";
import Collapse from "@mui/material/Collapse";
import Grid from "@mui/material/Grid";
import IconButton from "@mui/material/IconButton";
import LinearProgress from "@mui/material/LinearProgress";
import Tooltip from "@mui/material/Tooltip";
import Typography from "@mui/material/Typography";

import { WarningAmber } from "@mui/icons-material";
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import HelpOutlineOutlinedIcon from "@mui/icons-material/HelpOutlineOutlined";

Expand All @@ -29,7 +27,6 @@ import { TOOLS_CATEGORIES } from "@/constants/tools";
import {
setProcessUrl,
setStateExpanded,
setWarningExpanded,
} from "@/redux/actions/tools/assistantActions";

import {
Expand Down Expand Up @@ -60,12 +57,7 @@ const AssistantMediaResult = ({ title = null }) => {

// third party topMenuItem states
//const ocrLoading = useSelector(state=>state.assistant.ocrLoading)
const dbkfImageMatch = useSelector((state) => state.assistant.dbkfImageMatch);
const dbkfVideoMatch = useSelector((state) => state.assistant.dbkfVideoMatch);

const warningExpanded = useSelector(
(state) => state.assistant.warningExpanded,
);
const resultIsImage = resultProcessType === TOOLS_CATEGORIES.IMAGE;

// local control state
Expand Down Expand Up @@ -130,20 +122,6 @@ const AssistantMediaResult = ({ title = null }) => {
subheader={keyword("media_below")}
action={
<div style={{ display: "flex" }}>
<div>
{(dbkfImageMatch || dbkfVideoMatch) && (
<Tooltip title={keyword("image_warning")}>
<WarningAmber
color={"warning"}
className={classes.toolTipWarning}
onClick={() => {
dispatch(setWarningExpanded(!warningExpanded));
window.scroll(0, 0);
}}
/>
</Tooltip>
)}
</div>
<div>
<Tooltip
interactive={"true"}
Expand Down