@@ -256,16 +256,19 @@ function ScoreSection({ teamId }: { teamId: string }) {
256256 < div className = "mt-8" >
257257 < h2 className = "mb-4 text-xl font-bold" > Team Scores</ h2 >
258258
259- { showForm && (
259+ { (
260260 < div className = "mb-4 space-y-4 rounded-lg bg-gray-900 p-4" >
261261 < h3 className = "text-lg font-semibold" >
262262 { editMode ? "Edit Score" : "Add Score" }
263+ < p className = "text-red-500 text-sm" > score can range from 0-10</ p >
263264 </ h3 >
264265 < div className = "grid grid-cols-2 gap-4" >
265266 < div className = "space-y-2" >
266267 < Label > Design</ Label >
267268 < Input
268269 type = "number"
270+ min = "0"
271+ max = "10"
269272 value = { design }
270273 onChange = { ( e ) => setDesign ( Number ( e . target . value ) ) }
271274 />
@@ -274,6 +277,8 @@ function ScoreSection({ teamId }: { teamId: string }) {
274277 < Label > Implementation</ Label >
275278 < Input
276279 type = "number"
280+ min = "0"
281+ max = "10"
277282 value = { implementation }
278283 onChange = { ( e ) => setImplementation ( Number ( e . target . value ) ) }
279284 />
@@ -282,6 +287,8 @@ function ScoreSection({ teamId }: { teamId: string }) {
282287 < Label > Presentation</ Label >
283288 < Input
284289 type = "number"
290+ min = "0"
291+ max = "10"
285292 value = { presentation }
286293 onChange = { ( e ) => setPresentation ( Number ( e . target . value ) ) }
287294 />
@@ -290,6 +297,8 @@ function ScoreSection({ teamId }: { teamId: string }) {
290297 < Label > Innovation</ Label >
291298 < Input
292299 type = "number"
300+ min = "0"
301+ max = "10"
293302 value = { innovation }
294303 onChange = { ( e ) => setInnovation ( Number ( e . target . value ) ) }
295304 />
@@ -298,6 +307,8 @@ function ScoreSection({ teamId }: { teamId: string }) {
298307 < Label > Teamwork</ Label >
299308 < Input
300309 type = "number"
310+ min = "0"
311+ max = "10"
301312 value = { teamwork }
302313 onChange = { ( e ) => setTeamwork ( Number ( e . target . value ) ) }
303314 />
@@ -306,6 +317,8 @@ function ScoreSection({ teamId }: { teamId: string }) {
306317 < Label > Round</ Label >
307318 < Input
308319 type = "number"
320+ min = "0"
321+ max = "10"
309322 value = { round }
310323 onChange = { ( e ) => setRound ( Number ( e . target . value ) ) }
311324 />
@@ -358,21 +371,14 @@ function ScoreSection({ teamId }: { teamId: string }) {
358371 Total Score: { calculateTotalScore ( score ) }
359372 </ div >
360373 < div className = "space-x-2" >
361- < Button
362- size = "sm"
363- variant = "secondary"
364- onClick = { ( ) => handleEdit ( score ) }
365- disabled = { editMode }
366- >
367- Edit
368- </ Button >
374+ { /*
369375 <Button
370376 size="sm"
371377 variant="destructive"
372378 onClick={() => handleDelete(score.id)}
373379 >
374380 Delete
375- </ Button >
381+ </Button> */ }
376382 </ div >
377383 </ div >
378384 < div className = "grid grid-cols-3 gap-4" >
0 commit comments