Skip to content

Commit c7e5c6e

Browse files
committed
refactor(icons): change React import to type import in code generation files
1 parent 8949ca0 commit c7e5c6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/component-icons/codegen.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function generateIconFile(key, value) {
4141
* NOTE: This file is auto generated
4242
* Do not edit manually.
4343
*/
44-
import React from 'react';
44+
import type React from 'react';
4545
4646
export const ${componentName}: React.ReactElement = (
4747
${value}

packages/component-icons/template.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* NOTE: This class is auto generated by /zenkigen/workplace-frontend/packages/component-icon
33
* Do not edit the class manually.
44
*/
5-
import React from 'react';
5+
import type React from 'react';
66

77
export type IconName = <%- result.map(({ key }) => `'${key}'`).join(' | ') %>;
88

0 commit comments

Comments
 (0)