Skip to content

Commit

Permalink
Run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
szheng31 authored and github-actions[bot] committed Apr 12, 2024
1 parent 5c94878 commit 619b364
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
36 changes: 26 additions & 10 deletions components/judges/ScoreInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { IntegerType } from 'mongodb';
import styles from '../../styles/Judge.module.css';
import React from 'react';


interface ScoreInputProps {
value: number;
onChange: (value: number | null) => void;
Expand All @@ -19,15 +18,32 @@ export default function ScoreInput(props: ScoreInputProps) {

return (
<Row>
<Col flex={1/4}>
<Radio.Group onChange={onRadioChange} value={value} style={{display: 'flex', flexDirection: 'row', alignItems:'center'}}>
<Radio className={styles.CustomRadio} value={1}>1</Radio>
<Radio className={styles.CustomRadio} value={2}>2</Radio>
<Radio className={styles.CustomRadio} value={3}>3</Radio>
<Radio className={styles.CustomRadio} value={4}>4</Radio>
<Radio className={styles.CustomRadio} value={5}>5</Radio>
<Radio className={styles.CustomRadio} value={6}>6</Radio>
<Radio className={styles.CustomRadio} value={7}>7</Radio>
<Col flex={1 / 4}>
<Radio.Group
onChange={onRadioChange}
value={value}
style={{ display: 'flex', flexDirection: 'row', alignItems: 'center' }}>
<Radio className={styles.CustomRadio} value={1}>
1
</Radio>
<Radio className={styles.CustomRadio} value={2}>
2
</Radio>
<Radio className={styles.CustomRadio} value={3}>
3
</Radio>
<Radio className={styles.CustomRadio} value={4}>
4
</Radio>
<Radio className={styles.CustomRadio} value={5}>
5
</Radio>
<Radio className={styles.CustomRadio} value={6}>
6
</Radio>
<Radio className={styles.CustomRadio} value={7}>
7
</Radio>
</Radio.Group>
</Col>
<Col span={4}>
Expand Down
5 changes: 2 additions & 3 deletions styles/Judge.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@
.CustomRadio {
display: flex;
flex-direction: column;
align-items: center;
align-items: center;
margin-right: 20px;

}
}

0 comments on commit 619b364

Please sign in to comment.