Skip to content

Commit

Permalink
fix: after review
Browse files Browse the repository at this point in the history
  • Loading branch information
todti committed Jan 9, 2025
1 parent ad12e6f commit d014ca9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
border: none;
padding: 8px 4px;
border-radius: 4px;
cursor: pointer;
color: var(--on-icon-secondary);

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,19 @@ export const TestResultHistoryItem = ({ testResultItem }) => {

return (
<div>
<div className={styles["test-result-history-item-header"]} onClick={() => setIsOpen(!isOpened)}>
{Boolean(message) && <ArrowButton isOpened={isOpened} icon={arrowsChevronDown.id} />}
<div className={styles["test-result-history-item-wrap"]}>
<div className={styles["test-result-history-item-header"]}>
{Boolean(message) && (
<span onClick={() => setIsOpen(!isOpened)}>
<ArrowButton isOpened={isOpened} icon={arrowsChevronDown.id} />
</span>
)}
<div
className={styles["test-result-history-item-wrap"]}
onClick={(e) => {
e.stopPropagation();
openInNewTab(navigateUrl);
}}
>
<TreeItemIcon status={status} className={styles["test-result-history-item-status"]} />
<Text className={styles["test-result-history-item-text"]}>{convertedStop}</Text>
<div className={styles["test-result-history-item-info"]}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { useTestResultTabsContext } from "@/components/app/TestResult/TestResult
import { SvgIcon } from "@/components/commons/SvgIcon";
import { TooltipWrapper } from "@/components/commons/Tooltip";
import { Text } from "@/components/commons/Typography";
import { openInNewTab } from "@/index";
import { useI18n } from "@/stores";
import { capitalize } from "@/utils/capitalize";
import { timestampToDate } from "@/utils/time";
import * as styles from "./styles.scss";

const TestResultPrevStatus = ({ item }) => {
const { setCurrentTab } = useTestResultTabsContext();
return (
<div className={styles["test-result-prev-status"]} onClick={() => setCurrentTab("history")}>
<div className={styles["test-result-prev-status"]} onClick={() => openInNewTab(`testresult/${item.id}`)}>
<SvgIcon id={LineShapesDotCircle.id} className={styles[`status-${item?.status}`]} />
</div>
);
Expand Down

0 comments on commit d014ca9

Please sign in to comment.