Skip to content

Commit 6fc5ec6

Browse files
committed
change components/Answer
1 parent b5f4bc4 commit 6fc5ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Answer/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import Details from "@theme/Details";
44
/**
55
* component that hide an answer
66
*/
7-
export default function Answer({ type = undefined, children }) {
7+
export default function Answer({ title = undefined, children }) {
88
return (
99
<Details
1010
summary={
11-
type ? <summary>解答例: {type}</summary> : <summary>解答例</summary>
11+
title ? <summary>解答例: {title}</summary> : <summary>解答例</summary>
1212
}
1313
>
1414
{children}

0 commit comments

Comments
 (0)