Skip to content

Commit 4757c05

Browse files
committed
refactor: revert hint style changes
1 parent b075c02 commit 4757c05

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/components/ui/Hint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type HintProps = {
66
};
77

88
function Hint({ children, className }: HintProps): ReactElement {
9-
return <div className={`bg-yellow-50 text-yellow-900 py-5 px-8 text-base hint-container ${className}`}>{children}</div>;
9+
return <div className={`bg-yellow-50 text-yellow-900 py-5 px-8 border border-solid border-yellow-100 text-base hint-container ${className}`}>{children}</div>;
1010
}
1111

1212
export default Hint;

src/pages/communities/[slug]/challenges/[challenge_id]/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ export default function ChallengePage(props: {
133133
)}
134134
</div>
135135
) : (
136-
<Hint className="mt-6 flex flex-col md:flex-row">
137-
<p>To be able to submit</p>&nbsp;
138-
<Link className="underline" href="/login">
139-
Login
140-
</Link>
141-
</Hint>
136+
<div>
137+
<Hint className="mt-6 flex flex-col md:flex-row">
138+
<p>To be able to submit</p>&nbsp;
139+
<Link className="underline" href="/login">
140+
Login.
141+
</Link>
142+
</Hint>
143+
</div>
142144
)}
143145
</div>
144146
</Wrapper>

0 commit comments

Comments
 (0)