Skip to content

Commit

Permalink
fix(ShellBarItem): Fix wrong typing (#254)
Browse files Browse the repository at this point in the history
The `icon` prop was typed as `name`.
  • Loading branch information
MarcusNotheis authored Dec 17, 2019
1 parent 7f1a0ee commit d2bc4c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/main/src/webComponents/ShellBar/demo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const generatedDefaultStory = () => (
logo="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDEyLjM4IDIwNCI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTJ7ZmlsbC1ydWxlOmV2ZW5vZGQ7fS5jbHMtMXtmaWxsOnVybCgjbGluZWFyLWdyYWRpZW50KTt9LmNscy0ye2ZpbGw6I2ZmZjt9LmNscy0ze2ZpbGw6IzFlNWZiYjt9PC9zdHlsZT48bGluZWFyR3JhZGllbnQgaWQ9ImxpbmVhci1ncmFkaWVudCIgeDE9IjIwNi4xOSIgeDI9IjIwNi4xOSIgeTI9IjIwNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzAwYjhmMSIvPjxzdG9wIG9mZnNldD0iMC4wMiIgc3RvcC1jb2xvcj0iIzAxYjZmMCIvPjxzdG9wIG9mZnNldD0iMC4zMSIgc3RvcC1jb2xvcj0iIzBkOTBkOSIvPjxzdG9wIG9mZnNldD0iMC41OCIgc3RvcC1jb2xvcj0iIzE3NzVjOCIvPjxzdG9wIG9mZnNldD0iMC44MiIgc3RvcC1jb2xvcj0iIzFjNjViZiIvPj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AsMjEuNjgsMy40Myw2OC4zMyw2OC4zMywwLDAsMCwyMS4xNi0zLjI1bDYsMTguNjRoNjAuMTR2LTM5aDEzLjExYzMxLjcxLDAsNTAuNDYtMTYuMTUsNTAuNDYtNDMuMkMzMDEuNzQsNTIuMTksMjgzLjUyLDM4LjM2LDI0NC43MywzOC4zNlpNMTUwLjkxLDEyMWEzNi45MywzNi45MywwLDAsMS0xMy0yLjI4bDEyLjg3LTQwLjU5SDE1MWwxMi42NSw0MC43MUEzOC41LDM4LjUsMCwwLDEsMTUwLjkxLDEyMVptOTYuMi0yMy4zM2gtOC45NFY2NC45MWg4Ljk0YzExLjkzLDAsMjEuNDQsNCwyMS40NCwxNi4xNCwwLDEyLjYtOS41MSwxNi41Ny0yMS40NCwxNi41NyIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTI1Ny44NCwxOTAuNThhMTAuNzEsMTAuNzEsMCwxLDEsMTAuNzUsMTFBMTAuNzEsMTAuNzEsMCwwLDEsMjU3Ljg0LDE5MC41OFptMTAuNzUsMTMuMjNhMTMuMiwxMy4yLDAsMSwwLTEzLjQxLTEzLjIzQTEzLjE3LDEzLjE3LDAsMCwwLDI2OC41OSwyMDMuODFabS0yLjc5LTEyLjE5aDIuNjVsNCw2LjU5aDIuNjFsLTQuMzYtNi43YzIuMjYtLjI1LDQtMS40Niw0LTQuMTksMC0zLTEuNzgtNC4zMi01LjM2LTQuMzJoLTUuOHYxNS4yMWgyLjNabTAtMlYxODVoMy4xNGMxLjU5LDAsMy4yOS4zNCwzLjI5LDIuMjMsMCwyLjM3LTEuNzMsMi40OC0zLjY2LDIuNDhaIi8+PC9zdmc+"
primaryTitle={'Primary Title'}
secondaryTitle={'Secondary Title'}
notificationCount={number('notificationCount', 10)}
notificationCount={(number('notificationCount', 10) as unknown) as string}
profile="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53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wyMS40NCwxNi4xNCwwLDEyLjYtOS41MSwxNi41Ny0yMS40NCwxNi41NyIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTI1Ny44NCwxOTAuNThhMTAuNzEsMTAuNzEsMCwxLDEsMTAuNzUsMTFBMTAuNzEsMTAuNzEsMCwwLDEsMjU3Ljg0LDE5MC41OFptMTAuNzUsMTMuMjNhMTMuMiwxMy4yLDAsMSwwLTEzLjQxLTEzLjIzQTEzLjE3LDEzLjE3LDAsMCwwLDI2OC41OSwyMDMuODFabS0yLjc5LTEyLjE5aDIuNjVsNCw2LjU5aDIuNjFsLTQuMzYtNi43YzIuMjYtLjI1LDQtMS40Niw0LTQuMTksMC0zLTEuNzgtNC4zMi01LjM2LTQuMzJoLTUuOHYxNS4yMWgyLjNabTAtMlYxODVoMy4xNGMxLjU5LDAsMy4yOS4zNCwzLjI5LDIuMjMsMCwyLjM3LTEuNzMsMi40OC0zLjY2LDIuNDhaIi8+PC9zdmc+"
showNotifications={boolean('showNotifications', true)}
showProductSwitch={boolean('showProductSwitch', true)}
Expand All @@ -36,9 +36,9 @@ export const generatedDefaultStory = () => (
document.getElementById('product-switch-popover').openBy(e.getParameter('targetRef'));
}}
searchField={null}
icon={null}
startButton={null}
>
<ShellBarItem name="add" text="Test" />
<ShellBarItem icon="add" text="Test" />
</ShellBar>
<Popover {...{ id: 'product-switch-popover' }} placementType={PlacementType.Bottom}>
<ProductSwitch>
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/webComponents/ShellBarItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d2bc4c5

Please sign in to comment.