refactor(templates): improve handlebars
This commit is contained in:
parent
50d732f4cf
commit
c04f0ebd36
@ -1,14 +1,17 @@
|
|||||||
import classNames from 'classNames'
|
import classNames from 'classnames'
|
||||||
|
|
||||||
import styles from './{{ properCase name }}.module.scss'
|
import styles from './{{ properCase name }}.module.scss'
|
||||||
|
|
||||||
interface {{ properCase name }}Props {
|
interface {{ properCase name }}Props {
|
||||||
className?: string
|
className?: string
|
||||||
children?: React.ReactNode
|
children?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export const {{ properCase name }}: React.FC<{{ properCase name }}Props> = (props) => {
|
export const {{ properCase name }}: React.FC<{{ properCase name }}Props> = ({
|
||||||
const { className, children } = props
|
className,
|
||||||
|
children
|
||||||
return <div className={classNames(className, styles.container)}>{children}</div>
|
}) => {
|
||||||
|
return (
|
||||||
|
<div className={classNames(className, styles.container)}>{children}</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user