Skip to content

Commit

Permalink
Colors fix (#200)
Browse files Browse the repository at this point in the history
* Contributor added

* C
  • Loading branch information
Bashamega authored Jul 28, 2024
1 parent 0df9611 commit c8a723e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Contributors/contributors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Contribute() {
"1a5ba5",
"118d7c",
"8d54e1",
"40E4F0",
"ff0000",
"7e1aa5",
];
let element;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Error/ErrorType.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function ErrorType({ type }) {
: type === "push"
? "before:bg-[#8d54e1]"
: type === "branch"
? "before:bg-[#40E4F0]"
? "before:bg-[#ff0000]"
: type === "cmd"
? "before:bg-[#e100ff]"
: "before:bg-[#7e1aa5]"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Search/SearchInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function SearchInput({ search, setSearch, setType }) {
: item === "cmd"
? "bg-[#e100ff]"
: item === "branch"
? "bg-[#40E4F0]"
? "bg-[#ff0000]"
: "bg-[#7e1aa5]"
} ${
selectedTag === item ? "ring-4 ring-red-500" : ""
Expand Down Expand Up @@ -116,7 +116,7 @@ function SearchInput({ search, setSearch, setType }) {
: item === "cmd"
? "bg-[#40f058a8]"
: item === "branch"
? "bg-[#40E4F0]"
? "bg-[#ff0000]"
: "bg-[#7e1aa5]"
} ${
selectedTag === item ? "ring-4 ring-red-500" : ""
Expand Down
4 changes: 4 additions & 0 deletions src/data/Contributors.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
"name": "Atharva",
"github_username": "PiseAtharva",
"twitter_username": "PiseAtharva"
},{
"name": "Adam Basha",
"github_username": "Bashamega",
"twitter_username": ""
}
]
4 changes: 2 additions & 2 deletions src/hooks/useColorBorderBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const useColorBorderBox = (error = "") => {
return setErrorTypeColor("#4024e0");
}
if (error.type == "branch") {
return setErrorTypeColor("#40e4f0");
return setErrorTypeColor("#ff0000");
}
if (error.type == "push") {
return setErrorTypeColor("#8d54e1");
Expand Down Expand Up @@ -36,7 +36,7 @@ const useColorBorderBox = (error = "") => {
: item === "cmd"
? "border-[#e100ff]"
: item === "branch"
? "border-[#40E4F0]"
? "border-[#ff0000]"
: "border-[#7e1aa5]"
}`

Expand Down

0 comments on commit c8a723e

Please sign in to comment.