Skip to content

Commit 7c5444a

Browse files
authored
Merge pull request #398 from CodebilityDev/kris/Application-sort-and-modal-bug
application sorting and modal bug fixes
2 parents 16ded92 + 3fed415 commit 7c5444a

4 files changed

Lines changed: 216 additions & 73 deletions

File tree

‎apps/codebility/app/(marketing)/_components/MarketingFooter.tsx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ const Footer = () => {
5656
return (
5757
<Link key={social.id} href={social.href} target="_blank">
5858
<IconComponent
59-
className={`${
60-
IconComponent === IconFacebookWhite
61-
? "h-[25px] w-[25px]"
62-
: "h-[32px] w-[32px]"
63-
}`}
59+
className={`${IconComponent === IconFacebookWhite
60+
? "h-[25px] w-[25px]"
61+
: "h-[32px] w-[32px]"
62+
}`}
6463
/>
6564
</Link>
6665
);

‎apps/codebility/app/(marketing)/_components/marketing_modals/MarketingTermsAndConditionModal.tsx‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function TermsAndCondition() {
1616
<DialogTitle className="sr-only">Terms and Conditions</DialogTitle>
1717
<div className="flex h-full overflow-hidden rounded-[10px] border border-[#1D1D1E]">
1818
<div className="hidden sm:flex">
19-
<NavBar />
19+
<NavBar />
2020
</div>
2121
<Content />
2222
</div>
@@ -45,9 +45,8 @@ const NavBar: React.FC = () => {
4545
key={index}
4646
href={`#${tab}`}
4747
onClick={() => setActiveTab(index)}
48-
className={`px-2 py-1 text-xs sm:whitespace-nowrap sm:px-[1.2rem] sm:py-[10px] sm:text-base ${
49-
index === activeTab ? "rounded-[10px] bg-[#222222]" : ""
50-
}`}
48+
className={`px-2 py-1 text-xs sm:whitespace-nowrap sm:px-[1.2rem] sm:py-[10px] sm:text-base ${index === activeTab ? "rounded-[10px] bg-[#222222]" : ""
49+
}`}
5150
>
5251
{tab}
5352
</Link>
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
"use server";
2+
import { ModalProviderMarketing } from "@/components/providers/modal-provider-marketing";
3+
24
export default async function MarketingLayout({
35
children,
46
}: {
57
children: React.ReactNode;
68
}) {
79
return (
810
<div>
9-
<main>{children}</main>
11+
<main>
12+
{children}
13+
<ModalProviderMarketing />
14+
</main>
1015
</div>
1116
);
1217
}

0 commit comments

Comments
 (0)