Skip to content

Commit 3d8720d

Browse files
committed
MarketPlace Fixed
1 parent c675bb3 commit 3d8720d

File tree

9 files changed

+84
-33
lines changed

9 files changed

+84
-33
lines changed

out/404.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

out/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

out/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
8:I[43867,["4896","static/chunks/4896-3399f4afc28b16c0.js","9687","static/chunks/9687-44563a02b958f4a1.js","9118","static/chunks/9118-c936a48018427d4d.js","2026","static/chunks/2026-6da6e8da21749183.js","7177","static/chunks/app/layout-5f7174902692664b.js"],"default"]
99
9:I[59824,["4896","static/chunks/4896-3399f4afc28b16c0.js","9687","static/chunks/9687-44563a02b958f4a1.js","9118","static/chunks/9118-c936a48018427d4d.js","2026","static/chunks/2026-6da6e8da21749183.js","7177","static/chunks/app/layout-5f7174902692664b.js"],"default"]
1010
b:I[81959,[],"ClientPageRoot"]
11-
c:I[62855,["5592","static/chunks/c15bf2b0-1894ff94ed039d0f.js","7138","static/chunks/7c86ec74-2079d63be3d0acaa.js","9367","static/chunks/b536a0f1-9cb30f043fe7e0aa.js","1831","static/chunks/bd904a5c-529e1dc0ba34ead9.js","8568","static/chunks/b1644e8c-83ff67336b31e2a0.js","4896","static/chunks/4896-3399f4afc28b16c0.js","8640","static/chunks/8640-5845ba8b5ac6c169.js","213","static/chunks/213-76a8ba67a5e85f6f.js","4467","static/chunks/4467-89b8ad134ad5feaa.js","3312","static/chunks/3312-54f132cfa9cfab86.js","9687","static/chunks/9687-44563a02b958f4a1.js","4415","static/chunks/4415-f2c797c5e7236cc9.js","9118","static/chunks/9118-c936a48018427d4d.js","7979","static/chunks/7979-c5636c0ad96dd377.js","9034","static/chunks/9034-ca239ad17b71f1e4.js","8684","static/chunks/8684-c791f0335b914abb.js","9648","static/chunks/9648-ceb08c8e7456463c.js","9383","static/chunks/9383-78510c66307992b7.js","5170","static/chunks/5170-2b44e90fa78938a8.js","706","static/chunks/706-bfe7934e85a91215.js","6679","static/chunks/6679-a2d20ba0737025e6.js","8554","static/chunks/8554-8fc361689c0fe59b.js","8974","static/chunks/app/page-e18f388a7a83f07a.js"],"default"]
11+
c:I[62855,["5592","static/chunks/c15bf2b0-1894ff94ed039d0f.js","7138","static/chunks/7c86ec74-2079d63be3d0acaa.js","9367","static/chunks/b536a0f1-9cb30f043fe7e0aa.js","1831","static/chunks/bd904a5c-529e1dc0ba34ead9.js","8568","static/chunks/b1644e8c-83ff67336b31e2a0.js","4896","static/chunks/4896-3399f4afc28b16c0.js","8640","static/chunks/8640-5845ba8b5ac6c169.js","213","static/chunks/213-76a8ba67a5e85f6f.js","4467","static/chunks/4467-89b8ad134ad5feaa.js","3312","static/chunks/3312-54f132cfa9cfab86.js","9687","static/chunks/9687-44563a02b958f4a1.js","4415","static/chunks/4415-f2c797c5e7236cc9.js","9118","static/chunks/9118-c936a48018427d4d.js","7979","static/chunks/7979-c5636c0ad96dd377.js","9034","static/chunks/9034-ca239ad17b71f1e4.js","8684","static/chunks/8684-c791f0335b914abb.js","9648","static/chunks/9648-ceb08c8e7456463c.js","9383","static/chunks/9383-78510c66307992b7.js","5170","static/chunks/5170-2b44e90fa78938a8.js","706","static/chunks/706-bfe7934e85a91215.js","6679","static/chunks/6679-a2d20ba0737025e6.js","8554","static/chunks/8554-8fc361689c0fe59b.js","8974","static/chunks/app/page-ffa747ab6a01fb71.js"],"default"]
1212
f:I[24431,[],"OutletBoundary"]
1313
11:I[15278,[],"AsyncMetadataOutlet"]
1414
13:I[24431,[],"ViewportBoundary"]
@@ -44,7 +44,7 @@ a:T47b,
4444
s.src = "https://salesiq.zohopublic.in/widget";
4545
var t = d.getElementsByTagName("script")[0];
4646
t.parentNode.insertBefore(s, t);
47-
0:{"P":null,"b":"iNATVcFX83NcT9RE5Mef8","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/eb851307451c16bd.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"bg-background font-sans","children":[["$","$L2",null,{"children":[["$","div",null,{"className":"flex-grow ","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","$L5",null,{}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}],["$","$L7",null,{"id":"org-schema","type":"application/ld+json","children":"{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Hustloop\",\"url\":\"https://hustloop.com\",\"description\":\"Hustloop is an open innovation and startup collaboration platform that connects founders, corporate, innovators, and students to solve real business challenges and drive technology transfer.\",\"logo\":\"https://hustloop.com/logo.png\"}"}],["$","$L7",null,{"id":"website-schema","type":"application/ld+json","children":"{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hustloop\",\"description\":\"Hustloop is an open innovation and startup collaboration platform that connects founders, corporate, innovators, and students to solve real business challenges and drive technology transfer.\",\"url\":\"https://hustloop.com\"}"}],["$","$L8",null,{}],["$","$L9",null,{}],["$","$L7",null,{"id":"zoho-salesiq-script","strategy":"lazyOnload","children":"$a"}],["$","$L7",null,{"src":"https://checkout.razorpay.com/v1/checkout.js","strategy":"lazyOnload"}]]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lb",null,{"Component":"$c","searchParams":{},"params":{},"promises":["$@d","$@e"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/865e6d4821fc1e9e.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/98a322f506cee4a1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lf",null,{"children":["$L10",["$","$L11",null,{"promise":"$@12"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L13",null,{"children":"$L14"}],null],["$","$L15",null,{"children":["$","div",null,{"hidden":true,"children":["$","$16",null,{"fallback":null,"children":"$L17"}]}]}]]}],false]],"m":"$undefined","G":["$18",[]],"s":false,"S":true}
47+
0:{"P":null,"b":"CTetEqN9ZuTTBs6dSS5fx","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/eb851307451c16bd.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"bg-background font-sans","children":[["$","$L2",null,{"children":[["$","div",null,{"className":"flex-grow ","children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","$L5",null,{}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}]]}],["$","$L7",null,{"id":"org-schema","type":"application/ld+json","children":"{\"@context\":\"https://schema.org\",\"@type\":\"Organization\",\"name\":\"Hustloop\",\"url\":\"https://hustloop.com\",\"description\":\"Hustloop is an open innovation and startup collaboration platform that connects founders, corporate, innovators, and students to solve real business challenges and drive technology transfer.\",\"logo\":\"https://hustloop.com/logo.png\"}"}],["$","$L7",null,{"id":"website-schema","type":"application/ld+json","children":"{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hustloop\",\"description\":\"Hustloop is an open innovation and startup collaboration platform that connects founders, corporate, innovators, and students to solve real business challenges and drive technology transfer.\",\"url\":\"https://hustloop.com\"}"}],["$","$L8",null,{}],["$","$L9",null,{}],["$","$L7",null,{"id":"zoho-salesiq-script","strategy":"lazyOnload","children":"$a"}],["$","$L7",null,{"src":"https://checkout.razorpay.com/v1/checkout.js","strategy":"lazyOnload"}]]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$Lb",null,{"Component":"$c","searchParams":{},"params":{},"promises":["$@d","$@e"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/865e6d4821fc1e9e.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/98a322f506cee4a1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lf",null,{"children":["$L10",["$","$L11",null,{"promise":"$@12"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L13",null,{"children":"$L14"}],null],["$","$L15",null,{"children":["$","div",null,{"hidden":true,"children":["$","$16",null,{"fallback":null,"children":"$L17"}]}]}]]}],false]],"m":"$undefined","G":["$18",[]],"s":false,"S":true}
4848
d:{}
4949
e:"$0:f:0:1:2:children:1:props:children:0:props:params"
5050
14:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]

src/components/browsetech/browsetech.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useEffect, useMemo, useState } from "react";
44
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from "@/components/ui/dialog";
5-
import { Loader2, Search, ArrowRight } from "lucide-react";
5+
import { Loader2, Search, ArrowRight, X } from "lucide-react";
66
import { Button } from "@/components/ui/button";
77
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
88
import { Skeleton } from "@/components/ui/skeleton";
@@ -78,10 +78,22 @@ export default function TechTransferView({ isOpen, onOpenChange }: TechTransferV
7878
}, [profiles, searchTerm]);
7979

8080
return (
81-
<Dialog open={isOpen} onOpenChange={onOpenChange}>
82-
<DialogContent className="fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 sm:max-w-6xl w-[90vw] max-h-[90vh] flex flex-col p-0 overflow-hidden rounded-lg">
81+
<Dialog open={isOpen}>
82+
<DialogContent hideClose={true} className="fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[90vh] flex flex-col p-0 overflow-hidden rounded-lg">
8383
<DialogHeader className="p-6">
8484
<DialogTitle className="text-3xl font-bold text-center font-headline">Technology Transfer</DialogTitle>
85+
<Button
86+
variant="ghost"
87+
size="icon"
88+
className="absolute right-2 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"
89+
onClick={(e) => {
90+
e.stopPropagation(); // Add this line
91+
onOpenChange(false);
92+
}}
93+
>
94+
<X className="h-4 w-4" />
95+
<span className="sr-only">Close</span>
96+
</Button>
8597
<DialogDescription className="text-center">
8698
<span className="text-accent">
8799
{"Hustloop is where innovation meets execution."}
@@ -150,7 +162,7 @@ export default function TechTransferView({ isOpen, onOpenChange }: TechTransferV
150162
title={profile.firstName + " " + profile.lastName}
151163
containerClassName="w-[20rem]"
152164
>
153-
<Card className="w-[80vw] md:w-[20rem] h-[18rem] flex flex-col border-border/50 hover:border-accent/50 transition-colors bg-card shadow-xl" onClick={() => {
165+
<Card className="w-[90vw] md:w-[20rem] h-[18rem] flex flex-col border-border/50 hover:border-accent/50 transition-colors bg-card shadow-xl" onClick={() => {
154166
setTechId(profile.id);
155167
onOpenChange(true);
156168
}}>

src/components/ui/dialog.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName
3232

3333
const DialogContent = React.forwardRef<
3434
React.ElementRef<typeof DialogPrimitive.Content>,
35-
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
36-
>(({ className, children, ...props }, ref) => (
35+
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {
36+
hideClose?: boolean;
37+
}
38+
>(({ className, children, hideClose, ...props }, ref) => (
3739
<DialogPrimitive.Portal>
3840
<DialogOverlay />
3941
<DialogPrimitive.Content
@@ -48,10 +50,12 @@ const DialogContent = React.forwardRef<
4850
<DialogPrimitive.Title>Dialog</DialogPrimitive.Title>
4951
</VisuallyHidden>
5052
{children}
51-
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
52-
<X className="h-4 w-4" />
53-
<span className="sr-only">Close</span>
54-
</DialogPrimitive.Close>
53+
{!hideClose && (
54+
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
55+
<X className="h-4 w-4" />
56+
<span className="sr-only">Close</span>
57+
</DialogPrimitive.Close>
58+
)}
5559
</DialogPrimitive.Content>
5660
</DialogPrimitive.Portal>
5761
));

src/components/views/corporate-challenge-details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export default function CorporateChallengeDetails({
460460
: JSON.parse(challenge?.attachments || "[]");
461461
return (
462462
<Dialog open={!!challenge} onOpenChange={onOpenChange}>
463-
<DialogContent className="w-[90vw] max-w-[90vw] h-[90vh] flex flex-col p-0 rounded-lg">
463+
<DialogContent className="h-[90vh] flex flex-col p-0 rounded-lg">
464464
<DialogHeader className="p-6">
465465
<div className="flex items-center gap-4">
466466
<Avatar className="h-[60px] w-[60px] rounded-lg">

src/components/views/incubators.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }
66
import { Button } from "@/components/ui/button";
77
import Image from "next/image";
88
import { Badge } from "@/components/ui/badge";
9-
import { Star, MapPin, Lock, Terminal } from "lucide-react";
9+
import { Star, MapPin, Lock, Terminal, X } from "lucide-react";
1010
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from "@/components/ui/dialog";
1111
import { ScrollArea } from "@/components/ui/scroll-area";
1212
import { Separator } from "@/components/ui/separator";
@@ -211,10 +211,22 @@ export default function IncubatorsView({ isOpen, onOpenChange, isLoggedIn, hasSu
211211

212212
return (
213213
<>
214-
<Dialog open={isOpen} onOpenChange={onOpenChange}>
215-
<DialogContent className="sm:max-w-5xl h-[90vh] w-[90vw] rounded-lg lg:w-full flex flex-col p-0">
214+
<Dialog open={isOpen}>
215+
<DialogContent hideClose={true} className="sm:max-w-5xl h-[90vh] rounded-lg lg:w-full flex flex-col p-0">
216216
<DialogHeader className="p-6">
217217
<DialogTitle className="text-3xl font-bold text-center font-headline">Startup Incubation Hub</DialogTitle>
218+
<Button
219+
variant="ghost"
220+
size="icon"
221+
className="absolute right-2 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"
222+
onClick={(e) => {
223+
e.stopPropagation(); // Add this line
224+
onOpenChange(false);
225+
}}
226+
>
227+
<X className="h-4 w-4" />
228+
<span className="sr-only">Close</span>
229+
</Button>
218230
<DialogDescription className="text-center">
219231
<span className="text-accent">&quot;You Dream It. We Help Build It.&quot;</span>
220232
<br />

src/components/views/marketplace-view.tsx

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { useState } from 'react';
3+
import { useEffect, useState } from 'react';
44
import dynamic from 'next/dynamic';
55
import {
66
Dialog,
@@ -31,7 +31,17 @@ interface MarketplaceViewProps {
3131

3232
export default function MarketplaceView({ isOpen, onOpenChange, setActiveView, isLoggedIn, hasSubscription }: MarketplaceViewProps) {
3333
const [internalView, setInternalView] = useState<string | null>(null);
34+
const [isDialogOpen, setIsDialogOpen] = useState(isOpen);
3435

36+
useEffect(() => {
37+
setIsDialogOpen(isOpen);
38+
}, [isOpen]);
39+
const handleOpenChange = (open: boolean) => {
40+
setIsDialogOpen(open);
41+
if (!open) {
42+
onOpenChange(false);
43+
}
44+
};
3545
const handleInternalViewClose = (viewName: string) => (open: boolean) => {
3646
if (!open) {
3747
setInternalView(null);
@@ -40,7 +50,7 @@ export default function MarketplaceView({ isOpen, onOpenChange, setActiveView, i
4050

4151
return (
4252
<>
43-
<Dialog open={isOpen} onOpenChange={onOpenChange}>
53+
<Dialog open={isDialogOpen} onOpenChange={handleOpenChange}>
4454
<DialogContent className="max-w-3xl rounded-lg">
4555
<DialogHeader>
4656
<DialogTitle className="text-3xl font-bold text-center font-headline">Marketplace</DialogTitle>
@@ -89,7 +99,7 @@ export default function MarketplaceView({ isOpen, onOpenChange, setActiveView, i
8999
<div className="w-fit overflow-hidden py-1 px-4">
90100
<Marquee speed={18} className="w-[80vw]">
91101
<span className="text-[30px] sm:text-xs font-bold uppercase tracking-[0.2em] whitespace-nowrap">
92-
INCENTIVE CHALLENGES •
102+
INCENTIVE CHALLENGES •
93103
</span>
94104
</Marquee>
95105
</div>
@@ -137,7 +147,7 @@ export default function MarketplaceView({ isOpen, onOpenChange, setActiveView, i
137147
<div className="w-fit overflow-hidden py-1 px-4">
138148
<Marquee speed={18} className="w-[80vw]">
139149
<span className="text-[30px] sm:text-xs font-bold uppercase tracking-[0.2em] whitespace-nowrap">
140-
TECHNOLOGY TRANSFER •
150+
TECHNOLOGY TRANSFER •
141151
</span>
142152
</Marquee>
143153
</div>
@@ -187,7 +197,7 @@ export default function MarketplaceView({ isOpen, onOpenChange, setActiveView, i
187197
<div className="w-fit overflow-hidden py-1 px-4">
188198
<Marquee speed={18} className="w-[80vw]">
189199
<span className="text-[30px] sm:text-xs font-bold uppercase tracking-[0.2em] whitespace-nowrap">
190-
DREAM STARTUP •
200+
DREAM STARTUP •
191201
</span>
192202
</Marquee>
193203
</div>
@@ -211,16 +221,15 @@ export default function MarketplaceView({ isOpen, onOpenChange, setActiveView, i
211221
</DialogContent>
212222
</Dialog >
213223

214-
{internalView === 'msmes' && (
224+
{internalView === "msmes" && (
215225
<MsmesView
216-
isOpen={true}
217-
onOpenChange={handleInternalViewClose('msmes')}
226+
isOpen={internalView === "msmes"}
227+
onOpenChange={handleInternalViewClose("msmes")}
228+
setActiveView={setActiveView}
218229
isLoggedIn={isLoggedIn}
219230
hasSubscription={hasSubscription}
220-
setActiveView={setActiveView}
221231
/>
222-
)
223-
}
232+
)}
224233

225234
{
226235
internalView === 'browseTech' && (

0 commit comments

Comments
 (0)