We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8870e2 commit 07f6b82Copy full SHA for 07f6b82
1 file changed
website/src/theme/Admonition/Types.js
@@ -4,15 +4,15 @@ import DefaultAdmonitionTypes from '@theme-original/Admonition/Types';
4
5
const {info: Info} = DefaultAdmonitionTypes;
6
7
-function MyCustomAdmonition(props) {
+function ImportantAdmonition({ className, ...rest }) {
8
return (
9
- <Info className={clsx(props.className, 'alert--important')} {...props} />
+ <Info className={clsx(className, 'alert--important')} {...rest} />
10
);
11
}
12
13
const AdmonitionTypes = {
14
...DefaultAdmonitionTypes,
15
- important: MyCustomAdmonition,
+ important: ImportantAdmonition,
16
};
17
18
export default AdmonitionTypes;
0 commit comments