Skip to content

Commit

Permalink
Merge pull request #15 from aliraza944/develop
Browse files Browse the repository at this point in the history
fixed the name import brackets issue
  • Loading branch information
aliraza944 authored Dec 18, 2023
2 parents 338d2fb + 00086c9 commit f0e9996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const ${name} = () => {
`;
};
const IndexTemplate = (name: String) => {
return `import ${name} from './${name}';
return `import {${name}} from './${name}';
export default ${name} ;
`;
};
Expand Down

0 comments on commit f0e9996

Please sign in to comment.