Skip to content

Commit 22075cd

Browse files
committed
webcomponents-react script supports icon import of Icon
1 parent 2ff53ca commit 22075cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/main/scripts/create-web-components-wrapper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,10 @@ const createWebComponentDemo = (componentSpec, componentProps, description) => {
464464
if (prop.importStatement && prop.importStatement !== `import { ReactNode } from 'react';`) {
465465
enumImports.push(prop.importStatement);
466466
}
467+
if (componentSpec.module === 'Icon' && prop.name === 'name') {
468+
enumImports.push(`import "@ui5/webcomponents-icons/dist/icons/employee.js";`);
469+
args.push(`name: 'employee'`);
470+
}
467471
if (prop.name === 'primaryCalendarType') {
468472
enumImports.push(`import "@ui5/webcomponents-localization/dist/features/calendar/Gregorian.js";`);
469473
enumImports.push(`import "@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js";`);

0 commit comments

Comments
 (0)