diff --git a/components/judges/ScoreInput.tsx b/components/judges/ScoreInput.tsx index a91bc1ac..9f59d8b2 100644 --- a/components/judges/ScoreInput.tsx +++ b/components/judges/ScoreInput.tsx @@ -1,5 +1,9 @@ -import { Slider, InputNumber, Row, Col } from 'antd'; +import { Slider, Radio, InputNumber, Row, Col } from 'antd'; +import { RadioChangeEvent } from 'antd/lib'; +import { IntegerType } from 'mongodb'; +import styles from '../../styles/Judge.module.css'; import React from 'react'; + interface ScoreInputProps { value: number; onChange: (value: number | null) => void; @@ -8,10 +12,39 @@ interface ScoreInputProps { export default function ScoreInput(props: ScoreInputProps) { const { value, onChange } = props; const [min, max] = [0, 7]; + const onRadioChange = (e: RadioChangeEvent) => { + onChange(e.target.value); + }; + return ( - - + + + + 1 + + + 2 + + + 3 + + + 4 + + + 5 + + + 6 + + + 7 + +