Skip to content

Commit 363ae5f

Browse files
committed
fix import
1 parent df858fb commit 363ae5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

styleguide.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ module.exports = {
88
usageMode: "expand", // Keep prop tables always expanded
99
exampleMode: "expand", // Keep code examples always expanded
1010
propsParser: require("react-docgen-typescript").parse,
11+
getComponentPathLine(componentPath) {
12+
const name = path.basename(componentPath, path.extname(componentPath));
13+
return `import { ${name} } from "react-gradient-hover";`;
14+
},
1115
webpackConfig: {
1216
module: {
1317
rules: [

0 commit comments

Comments
 (0)