File tree Expand file tree Collapse file tree
learn/src/pages/keyboard/tutorial/tutorial1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,15 @@ import {
88 Typography ,
99 Button ,
1010 Stack ,
11+ Accordion ,
12+ AccordionSummary ,
13+ AccordionDetails ,
1114} from "@mui/material" ;
1215import { SixDotBrailleString } from "@/models/BrailleString" ;
1316import translateBraille from "@/utils/translateBraille" ;
1417import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline" ;
1518import RefreshIcon from "@mui/icons-material/Refresh" ;
19+ import ExpandMoreIcon from "@mui/icons-material/ExpandMore" ;
1620
1721interface Question {
1822 question : string ;
@@ -138,13 +142,17 @@ export default function Tutorial1({
138142 questionList [ questionIndex ] !== undefined &&
139143 questionList [ questionIndex ] . hint !== undefined && (
140144 < Paper elevation = { 2 } sx = { { my : 2 } } >
141- < Typography variant = "h6" component = "h2" color = "inherit" p = { 2 } >
142- ヒント
143- </ Typography >
144- < Divider />
145- < Typography sx = { { minHeight : 100 } } p = { 2 } >
146- { questionList [ questionIndex ] . hint }
147- </ Typography >
145+ < Accordion >
146+ < AccordionSummary expandIcon = { < ExpandMoreIcon /> } >
147+ < Typography variant = "h6" component = "h2" color = "inherit" >
148+ ヒント
149+ </ Typography >
150+ < Divider />
151+ </ AccordionSummary >
152+ < AccordionDetails >
153+ < Typography > { questionList [ questionIndex ] . hint } </ Typography >
154+ </ AccordionDetails >
155+ </ Accordion >
148156 </ Paper >
149157 ) }
150158
You can’t perform that action at this time.
0 commit comments