Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 10 additions & 22 deletions src/components/Round.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import SolvedIcon from '@mui/icons-material/CheckRounded'
import UnsolvedIcon from '@mui/icons-material/CloseRounded'
import SolvedIcon from '@mui/icons-material/CheckBoxRounded'
import UnsolvedIcon from '@mui/icons-material/DisabledByDefaultRounded'
import BlankBoxIcon from '@mui/icons-material/CheckBoxOutlineBlankRounded'
import DeleteIcon from '@mui/icons-material/UndoRounded'
import Box from '@mui/material/Box'
import Button from '@mui/material/Button'
Expand Down Expand Up @@ -102,29 +103,16 @@ const Round: FC<Props> = ({ round, index }) => {
}}
>
<SingleCharLabel>{query.verifier}</SingleCharLabel>
<Box pt={1} pb={2} position="relative">
<Box
height={20}
margin="auto"
width={20}
sx={{
borderWidth: 2,
borderStyle: 'solid',
borderColor: theme.palette.primary.main,
borderRadius: theme.spacing(0.5),
}}
/>
<Box
position="absolute"
top={-2}
left={3}
sx={{ color: theme.palette.text.primary }}
>
<Box position="relative">
<Box>
{query.state === 'unknown' && (
<BlankBoxIcon sx={{ color: theme.palette.primary.main }} />
)}
{query.state === 'solved' && (
<SolvedIcon fontSize="large" />
<SolvedIcon sx={{ color: theme.palette.primary.dark }} />
)}
{query.state === 'unsolved' && (
<UnsolvedIcon fontSize="large" />
<UnsolvedIcon sx={{ color: theme.palette.secondary.dark }} />
)}
</Box>
</Box>
Expand Down