Skip to content

Commit

Permalink
Add ? icon next to multiplechoice expandable boxes to clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Feb 21, 2023
1 parent ae7ef62 commit 23ecda9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/components/Choices/MultiChoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from '@mui/material'
import ExpandLess from '@mui/icons-material/ExpandLess'
import ExpandMore from '@mui/icons-material/ExpandMore'
import HelpOutlineIcon from '@mui/icons-material/HelpOutline'
import { MultipleChoiceType, InputProps } from '../../types'

const ShowMore = ({ text }: { text: string }) => {
Expand All @@ -19,10 +20,11 @@ const ShowMore = ({ text }: { text: string }) => {
return (
<>
<IconButton onClick={() => setExpand(!expand)}>
<HelpOutlineIcon />
{!expand ? <ExpandMore /> : <ExpandLess />}
</IconButton>
<Collapse in={expand} timeout="auto" unmountOnExit>
<Typography paragraph>{text}</Typography>
<Typography variant="body2">{text}</Typography>
</Collapse>
</>
)
Expand Down

0 comments on commit 23ecda9

Please sign in to comment.