Skip to content

Commit

Permalink
refactor(LanguageLabeledIcon): set language code to uppercase and min…
Browse files Browse the repository at this point in the history
…or storybook change
  • Loading branch information
Alexis Sourtzis committed May 5, 2022
1 parent 7000d24 commit ac28693
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ui/LabeledIconGroup/LabeledIconGroup.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Default.args = {
],
},
language: {
label: 'Repost Language',
label: 'Language',
icon: <i className="ri-global-line"></i>,
items: [
{ name: 'English', code: 'en' },
Expand Down
4 changes: 2 additions & 2 deletions src/ui/LanguageLabeledIcon/LanguageLabeledIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Dropdown = ({ children, ...rest }) => {
role="button"
tabIndex={0}
>
{item.name} <span>{item.code}</span>
{item.name} <span>{item.code.toUpperCase()}</span>
</div>
</li>
))}
Expand All @@ -77,7 +77,7 @@ const Dropdown = ({ children, ...rest }) => {
role="button"
tabIndex={0}
>
{item.name} <span>{item.code}</span>
{item.name} <span>{item.code.toUpperCase()}</span>
</div>
</li>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/LanguageLabeledIcon/LanguageLabeledIcon.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Template = (args) => (

export const Default = Template.bind({});
Default.args = {
label: 'Repost Language',
label: 'Language',
icon: <i className="ri-global-line"></i>,
items: [
{ name: 'English', code: 'en' },
Expand Down

0 comments on commit ac28693

Please sign in to comment.