From b7bbf5904c49b9f8c7eea580eebaebbcd7738d4c Mon Sep 17 00:00:00 2001 From: MarcusNotheis Date: Tue, 17 Dec 2019 15:58:37 +0100 Subject: [PATCH] fix(ShellBarItem): Fix wrong typing The `icon` prop was typed as `name`. --- packages/main/src/webComponents/ShellBar/demo.stories.tsx | 6 +++--- packages/main/src/webComponents/ShellBarItem/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/main/src/webComponents/ShellBar/demo.stories.tsx b/packages/main/src/webComponents/ShellBar/demo.stories.tsx index 2d6f2a8625b..cf7cbf19fce 100644 --- a/packages/main/src/webComponents/ShellBar/demo.stories.tsx +++ b/packages/main/src/webComponents/ShellBar/demo.stories.tsx @@ -21,7 +21,7 @@ export const generatedDefaultStory = () => ( logo="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDEyLjM4IDIwNCI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTJ7ZmlsbC1ydWxlOmV2ZW5vZGQ7fS5jbHMtMXtmaWxsOnVybCgjbGluZWFyLWdyYWRpZW50KTt9LmNscy0ye2ZpbGw6I2ZmZjt9LmNscy0ze2ZpbGw6IzFlNWZiYjt9PC9zdHlsZT48bGluZWFyR3JhZGllbnQgaWQ9ImxpbmVhci1ncmFkaWVudCIgeDE9IjIwNi4xOSIgeDI9IjIwNi4xOSIgeTI9IjIwNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzAwYjhmMSIvPjxzdG9wIG9mZnNldD0iMC4wMiIgc3RvcC1jb2xvcj0iIzAxYjZmMCIvPjxzdG9wIG9mZnNldD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'Secondary Title'} - notificationCount={number('notificationCount', 10)} + notificationCount={(number('notificationCount', 10) as unknown) as string} profile="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDEyLjM4IDIwNCI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTJ7ZmlsbC1ydWxlOmV2ZW5vZGQ7fS5jbHMtMXtmaWxsOnVybCgjbGluZWFyLWdyYWRpZW50KTt9LmNscy0ye2ZpbGw6I2ZmZjt9LmNscy0ze2ZpbGw6IzFlNWZiYjt9PC9zdHlsZT48bGluZWFyR3JhZGllbnQgaWQ9ImxpbmVhci1ncmFkaWVudCIgeDE9IjIwNi4xOSIgeDI9IjIwNi4xOSIgeTI9IjIwNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzAwYjhmMSIvPjxzdG9wIG9mZnNldD0iMC4wMiIgc3RvcC1jb2xvcj0iIzAxYjZmMCIvPjxzdG9wIG9mZnNldD0iMC4zMSIgc3RvcC1jb2xvcj0iIzBkOTBkOSIvPjxzdG9wIG9mZnNldD0iMC41OCIgc3RvcC1jb2xvcj0iIzE3NzVjOCIvPjxzdG9wIG9mZnNldD0iMC44MiIgc3RvcC1jb2xvcj0iIzFjNjViZiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzFlNWZiYiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjx0aXRsZT5TQVBfZ3JhZF9SWmVpY2hlbmZsw6RjaGUgMTwvdGl0bGU+PHBvbHlsaW5lIGNsYXNzPSJjbHMtMSIgcG9pbnRzPSIwIDIwNCAyMDguNDEgMjA0IDQ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LDAsMS0xMy0yLjI4bDEyLjg3LTQwLjU5SDE1MWwxMi42NSw0MC43MUEzOC41LDM4LjUsMCwwLDEsMTUwLjkxLDEyMVptOTYuMi0yMy4zM2gtOC45NFY2NC45MWg4Ljk0YzExLjkzLDAsMjEuNDQsNCwyMS40NCwxNi4xNCwwLDEyLjYtOS41MSwxNi41Ny0yMS40NCwxNi41NyIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTI1Ny44NCwxOTAuNThhMTAuNzEsMTAuNzEsMCwxLDEsMTAuNzUsMTFBMTAuNzEsMTAuNzEsMCwwLDEsMjU3Ljg0LDE5MC41OFptMTAuNzUsMTMuMjNhMTMuMiwxMy4yLDAsMSwwLTEzLjQxLTEzLjIzQTEzLjE3LDEzLjE3LDAsMCwwLDI2OC41OSwyMDMuODFabS0yLjc5LTEyLjE5aDIuNjVsNCw2LjU5aDIuNjFsLTQuMzYtNi43YzIuMjYtLjI1LDQtMS40Niw0LTQuMTksMC0zLTEuNzgtNC4zMi01LjM2LTQuMzJoLTUuOHYxNS4yMWgyLjNabTAtMlYxODVoMy4xNGMxLjU5LDAsMy4yOS4zNCwzLjI5LDIuMjMsMCwyLjM3LTEuNzMsMi40OC0zLjY2LDIuNDhaIi8+PC9zdmc+" showNotifications={boolean('showNotifications', true)} showProductSwitch={boolean('showProductSwitch', true)} @@ -36,9 +36,9 @@ export const generatedDefaultStory = () => ( document.getElementById('product-switch-popover').openBy(e.getParameter('targetRef')); }} searchField={null} - icon={null} + startButton={null} > - + diff --git a/packages/main/src/webComponents/ShellBarItem/index.tsx b/packages/main/src/webComponents/ShellBarItem/index.tsx index 4787cca24ec..8e579caf6e6 100644 --- a/packages/main/src/webComponents/ShellBarItem/index.tsx +++ b/packages/main/src/webComponents/ShellBarItem/index.tsx @@ -5,7 +5,7 @@ import { withWebComponent } from '@ui5/webcomponents-react/lib/withWebComponent' import { WithWebComponentPropTypes } from '../../internal/withWebComponent'; export interface ShellBarItemPropTypes extends WithWebComponentPropTypes { - name?: string; // @generated + icon?: string; // @generated text?: string; // @generated onItemClick?: (event: Event) => void; // @generated }