Skip to content

Commit c4baebd

Browse files
authored
Merge pull request #1211 from dacadeorg/fix/submission-box-borders
fix: remove duplicate border on GithubLink submission box
2 parents 8e3aee5 + 773231d commit c4baebd

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/components/sections/challenges/Submission.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { useMultiSelector } from "@/hooks/useTypedSelector";
99
import { useDispatch } from "@/hooks/useTypedDispatch";
1010
import { createSubmission, createSubmissionTeam } from "@/store/feature/communities/challenges/submissions";
1111
import { useForm } from "react-hook-form";
12-
import classNames from "classnames";
1312
import { useTranslation } from "next-i18next";
1413
import { ReactElement } from "react";
1514
import { Submission as TSubmission, User } from "@/types/bounty";
@@ -163,11 +162,7 @@ export default function Submission(): ReactElement {
163162
/>
164163
</div>
165164
{challenge.format.githubLink && (
166-
<div
167-
className={classNames("w-full border border-solid border-gray-200 m-0 rounded-b text-lg py-0 leading-none items-center space-x-2", {
168-
"border-t-0": challenge.format.text,
169-
})}
170-
>
165+
<div className="w-full m-0 text-lg py-0 leading-none items-center space-x-2">
171166
<div>
172167
<GithubLinkInput
173168
id="input-github"

src/components/ui/GithubLinkInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default forwardRef<HTMLInputElement, GithubLinkInputProps>(function Githu
8383
);
8484

8585
return (
86-
<div className="flex items-center w-full border border-t-0 border-gray-200">
86+
<div className="flex items-center w-full border border-t-0 rounded-b border-gray-200">
8787
<div className="flex-none pl-3.75">
8888
<GithubIcon className="relative flex-none text-gray-400 m-0 p-0 block -mt-0.5" />
8989
</div>

0 commit comments

Comments
 (0)