Skip to content

Commit

Permalink
fix: issue with generating component and class name (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Feb 15, 2023
1 parent 7c10f64 commit 55d27e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/_templates/mitosis/new/tsx.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function DB<%= h.changeCase.pascal(name) %>(props: DB<%= h.change
});

return (
<div className={'db-<%= name %>' + (props.className ? ' ' + props.className : '')}>
<div class={'db-<%= name %>' + (props.className ? ' ' + props.className : '')}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down

0 comments on commit 55d27e6

Please sign in to comment.