Skip to content

Commit 03e4da6

Browse files
author
Boopathi
committed
Update dashboard configuration
1 parent c6aa41c commit 03e4da6

File tree

7 files changed

+94
-34
lines changed

7 files changed

+94
-34
lines changed

out/404.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

out/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

out/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2:"$Sreact.suspense"
2-
3:I[74344,["9990","static/chunks/7c86ec74-5d3e2c324eba8f04.js","8415","static/chunks/8415-3647249926a008b4.js","5844","static/chunks/5844-71d41ecabde65adb.js","9635","static/chunks/9635-c1242a475b801a6a.js","8437","static/chunks/8437-9cca2dc77cd479a5.js","3145","static/chunks/3145-96a9e135101030c6.js","5935","static/chunks/5935-e7af8502207931af.js","7094","static/chunks/7094-2b10a40822cc84b1.js","1931","static/chunks/app/page-0dba7077816bd710.js"],"default"]
2+
3:I[74344,["9990","static/chunks/7c86ec74-31fb21749451c47c.js","8415","static/chunks/8415-3647249926a008b4.js","5844","static/chunks/5844-71d41ecabde65adb.js","9635","static/chunks/9635-1974f6391a1f5d48.js","8437","static/chunks/8437-9cca2dc77cd479a5.js","3145","static/chunks/3145-96a9e135101030c6.js","5935","static/chunks/5935-ba256799aa2ed43d.js","7094","static/chunks/7094-2b10a40822cc84b1.js","1931","static/chunks/app/page-29e86e21888edbc6.js"],"default"]
33
4:I[11225,["8068","static/chunks/8068-111f0b00c8797a1e.js","8415","static/chunks/8415-3647249926a008b4.js","5844","static/chunks/5844-71d41ecabde65adb.js","1915","static/chunks/1915-bfb0f97fd1af2908.js","3185","static/chunks/app/layout-a21bbe360d2476df.js"],"default"]
44
5:I[4707,[],""]
55
6:I[36423,[],""]
@@ -32,6 +32,6 @@ s.defer = true;
3232
s.src = "https://salesiq.zohopublic.in/widget";
3333
var t = d.getElementsByTagName("script")[0];
3434
t.parentNode.insertBefore(s, t);
35-
0:["wh41412nwJpWu76kv9WRy",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$2",null,{"fallback":["$","div",null,{"children":"Loading..."}],"children":["$","$L3",null,{}]}],null],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/02b2aee02a368ff7.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__variable_19640c __variable_9f6af0","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n try {\n let theme = localStorage.getItem('theme');\n if (!theme) {\n theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n if (theme === 'dark') {\n document.documentElement.classList.add('dark');\n } else {\n document.documentElement.classList.remove('dark');\n }\n } catch (e) {}\n })();\n "}}]}],["$","body",null,{"className":"antialiased bg-background font-sans","children":[["$","div",null,{"className":"flex flex-col min-h-screen","children":[["$","div",null,{"className":"hidden dark:block","children":["$","$L4",null,{}]}],["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","$L7",null,{}],"notFoundStyles":[]}]]}],["$","$L8",null,{}],["$","$L9",null,{"id":"zoho-salesiq-script","strategy":"lazyOnload","children":"$a"}]]}]]}]],null],null],["$Lb",null]]]]
35+
0:["ixn5Jv9qF_1zbe5g5W63y",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$2",null,{"fallback":["$","div",null,{"children":"Loading..."}],"children":["$","$L3",null,{}]}],null],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/02b2aee02a368ff7.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"__variable_19640c __variable_9f6af0","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n try {\n let theme = localStorage.getItem('theme');\n if (!theme) {\n theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n if (theme === 'dark') {\n document.documentElement.classList.add('dark');\n } else {\n document.documentElement.classList.remove('dark');\n }\n } catch (e) {}\n })();\n "}}]}],["$","body",null,{"className":"antialiased bg-background font-sans","children":[["$","div",null,{"className":"flex flex-col min-h-screen","children":[["$","div",null,{"className":"hidden dark:block","children":["$","$L4",null,{}]}],["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","$L7",null,{}],"notFoundStyles":[]}]]}],["$","$L8",null,{}],["$","$L9",null,{"id":"zoho-salesiq-script","strategy":"lazyOnload","children":"$a"}]]}]]}]],null],null],["$Lb",null]]]]
3636
b:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Hustloop | Connect, Collaborate, Build Stronger Startup & Innovators Meet"}],["$","meta","3",{"name":"description","content":"A prototype startup platform that includes modules such as Blog, Mentors, Incubators, Pricing, and MSMEs."}],["$","link","4",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"48x48"}],["$","meta","5",{"name":"next-size-adjust"}]]
3737
1:null

src/app/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ export type EducationFeature = {
6161
};
6262

6363
export type EducationProgram = {
64+
id: number;
6465
title: string;
6566
sessions: EducationSession[];
6667
description: string;
6768
features: EducationFeature[];
69+
created_at: string;
6870
};
6971

7072

src/components/auth/login-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function LoginModal({ isOpen, setIsOpen, onLoginSuccess }: LoginM
7070
title: "Admin Login Successful",
7171
description: "Welcome, Admin!",
7272
});
73-
setIsOpen(false);
73+
setIsOpen(false);
7474
onLoginSuccess({
7575
role: "admin",
7676
token: "dev-admin-token",

src/components/auth/signup-modal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ export default function SignupModal({ isOpen, setIsOpen }: SignupModalProps) {
7878
await updateProfile(userCredential.user, { displayName: values.name });
7979
// Send email verification
8080
await sendEmailVerification(userCredential.user);
81-
toast({
82-
title: "Registration Successful",
81+
toast({
82+
title: "Registration Successful",
8383
description: "Your account has been created. Please check your email to verify your account.",
84-
});
85-
setIsOpen(false);
84+
});
85+
setIsOpen(false);
8686
} catch (error: any) {
8787
let description = error.message || 'An error occurred while creating your account.';
8888
if (error.code === 'auth/email-already-in-use') {
@@ -109,7 +109,7 @@ export default function SignupModal({ isOpen, setIsOpen }: SignupModalProps) {
109109
try {
110110
const result = await signInWithPopup(auth, authProvider);
111111
toast({ title: "Login Successful", description: `Welcome, ${result.user.displayName || result.user.email}!` });
112-
setIsOpen(false);
112+
setIsOpen(false);
113113
// Optionally update UI or redirect
114114
} catch (error: any) {
115115
let description = error.message || 'An error occurred while signing in.';

0 commit comments

Comments
 (0)