mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-15 12:09:20 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
7fe816c997 | |||
7e28baf2aa | |||
b19992b57c | |||
0bb84f9946 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@dzeio/components",
|
||||
"version": "0.7.4",
|
||||
"version": "0.7.6",
|
||||
"license": "MIT",
|
||||
"main": "./index.js",
|
||||
"types": "./types/index.d.ts",
|
||||
|
@ -13,7 +13,7 @@ export default [
|
||||
autoModules: true,
|
||||
mode: 'extract',
|
||||
modules: {
|
||||
generateScopedName: '[hash:8]'
|
||||
generateScopedName: '[local][hash:5]'
|
||||
}
|
||||
}),
|
||||
typescript({useTsconfigDeclarationDir: true}), // so Rollup can convert TypeScript to JavaScript
|
||||
|
@ -26,6 +26,6 @@ export default class Text extends React.Component<Props> {
|
||||
return (<p className={classes}><em>{this.props.children}</em></p>)
|
||||
}
|
||||
|
||||
return React.createElement(this.props.type || 'p', {className: classes})
|
||||
return React.createElement(this.props.type || 'p', {className: classes, children: this.props.children})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user