Skip to content

Commit 12d049e

Browse files
authored
Solution Button border color changed (#246)
* check update * border changed
1 parent b0bcf67 commit 12d049e

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.gitpod.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
tasks:
8+
- init: yarn install && yarn run build
9+
command: yarn run dev
10+
11+

src/components/Error/ErrorCard.jsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
import React, { useState } from "react";
2-
import useColorBorderBox from "../../hooks/useColorBorderBox"
3-
import {
4-
MdOutlineArrowRightAlt,
5-
} from "react-icons/md";
2+
import useColorBorderBox from "../../hooks/useColorBorderBox";
3+
import { MdOutlineArrowRightAlt } from "react-icons/md";
64
import ErrorType from "./ErrorType";
75
import "./css/style.css";
8-
96
import ModalSolutions from "./ModalSolutions";
107

118
function ErrorCard({ error }) {
12-
139
const [readMore, setReadMore] = useState(false);
1410
const [isOpenModal, setOpenModal] = useState(false);
1511
const [solution, setSolution] = useState("");
16-
const { borderColor } = useColorBorderBox(error)
12+
const { borderColor } = useColorBorderBox(error);
1713

1814
return (
19-
<div
20-
id="main-div"
21-
className={borderColor + " relative"}
22-
>
15+
<div id="main-div" className={borderColor + " relative"}>
2316
<h3 className="title">{error.title}</h3>
2417
<div className="absolute h-full -right-2 -top-2">
2518
<ErrorType type={error.type} />
@@ -45,7 +38,7 @@ function ErrorCard({ error }) {
4538
</div>
4639

4740
<button
48-
className="flex mt-2 items-center gap-2 px-3 py-2 border border-white/40 rounded-lg hover:border-primary hover:text-primary"
41+
className="flex mt-2 items-center gap-2 px-3 py-2 border border-black dark:border-white rounded-lg hover:border-primary hover:text-primary"
4942
onClick={() => setOpenModal((prev) => !prev)}
5043
>
5144
<span className="text-xs">Solution</span>

0 commit comments

Comments
 (0)