Skip to content

Commit 2ec38dc

Browse files
post score
1 parent 601c201 commit 2ec38dc

7 files changed

Lines changed: 379 additions & 299 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"radix-ui": "^1.1.1",
4141
"react": "^18.3.1",
4242
"react-dom": "^18.3.1",
43+
"react-hook-form": "^7.54.2",
4344
"react-hot-toast": "^2.4.1",
4445
"shadcn-ui": "^0.9.4",
4546
"tailwind-merge": "^2.5.2",

pnpm-lock.yaml

Lines changed: 33 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/fetchTeamDetails.ts

Lines changed: 82 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,88 @@ import axios from "./axiosConfig";
66

77
export const fetchTeamDetails = async ({ uuid }: { uuid: string }) => {
88
try {
9-
const response = await axios.get<MainSearch>(
10-
`admin/teams/${uuid}`
11-
);
12-
// console.log(response)
13-
const parsedResponse = MainTeamSearchResponse.parse(response.data)
14-
console.log(parsedResponse)
15-
return parsedResponse.data
9+
// const response = await axios.get<MainSearch>(
10+
// `admin/teams/${uuid}`
11+
// );
12+
// // console.log(response)
13+
// const parsedResponse = MainTeamSearchResponse.parse(response.data)
14+
// console.log(parsedResponse)
15+
return {
16+
"idea": {
17+
"ID": "880e8400-e29b-41d4-a716-446655440000",
18+
"Title": "AI Chatbot for Customer Support",
19+
"Description": "An AI-powered chatbot to enhance customer support experiences.",
20+
"Track": "AI & ML"
21+
},
22+
"score": [
23+
{
24+
"ID": "660e8400-e29b-41d4-a716-446655440000",
25+
"TeamID": "550e8400-e29b-41d4-a716-446655440000",
26+
"Design": 85,
27+
"Implementation": 90,
28+
"Presentation": 88,
29+
"Round": 1,
30+
"Innovation": 0,
31+
"Teamwork": 0,
32+
"Comment": null
33+
}
34+
],
35+
"submission": {
36+
"ID": "770e8400-e29b-41d4-a716-446655440000",
37+
"Title": "AI-powered Assistant",
38+
"Description": "An AI-driven virtual assistant for productivity.",
39+
"Track": "AI & ML",
40+
"GithubLink": "https://github.com/alpha-innovators/ai-assistant",
41+
"FigmaLink": "https://figma.com/alpha-ai",
42+
"OtherLink": "https://alpha-innovators.com",
43+
"TeamID": "550e8400-e29b-41d4-a716-446655440000"
44+
},
45+
"team": {
46+
"ID": "550e8400-e29b-41d4-a716-446655440000",
47+
"Name": "Alpha Innovators",
48+
"NumberOfPeople": 5,
49+
"RoundQualified": 1,
50+
"Code": "ALPHA123",
51+
"IsBanned": false
52+
},
53+
"team_members": [
54+
{
55+
"FirstName": "Soham",
56+
"LastName": "Maha",
57+
"Email": "soham.mahapatra2025@vitstudent.ac.in",
58+
"RegNo": "23BCI0074",
59+
"PhoneNo": "0987654321"
60+
},
61+
{
62+
"FirstName": "Soham",
63+
"LastName": "Maha",
64+
"Email": "soham.mahapatra2026@vitstudent.ac.in",
65+
"RegNo": "23BCI0075",
66+
"PhoneNo": "0987654322"
67+
},
68+
{
69+
"FirstName": "Soham",
70+
"LastName": "Maha",
71+
"Email": "soham.mahapatra2027@vitstudent.ac.in",
72+
"RegNo": "23BCI0076",
73+
"PhoneNo": "0987654324"
74+
},
75+
{
76+
"FirstName": "Soham",
77+
"LastName": "Maha",
78+
"Email": "soham.mahapatra2023@vitstudent.ac.in",
79+
"RegNo": "23BCI0077",
80+
"PhoneNo": "0987654323"
81+
},
82+
{
83+
"FirstName": "Maha",
84+
"LastName": "Soha",
85+
"Email": "soham.mahapatra2024@vitstudent.ac.in",
86+
"RegNo": "23BCI0078",
87+
"PhoneNo": "0987654325"
88+
}
89+
]
90+
}
1691
} catch (err) {
1792
console.log(err);
1893
throw err;

0 commit comments

Comments
 (0)