Skip to content

Commit 6ee00e0

Browse files
authored
Merge pull request #744 from lumapps/fix/userblock-linkas
Fix/userblock-linkas
2 parents 28907f4 + 948b439 commit 6ee00e0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12-
- Textfield: show the maxlength counter on textfields with no label
12+
- Textfield: show the maxlength counter on textfields with no label.
13+
- UserBlock : Pass `linkAs` prop to Avatar child.
1314

1415
## [2.1.6][] - 2021-12-03
1516

packages/lumx-react/src/components/user-block/UserBlock.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export const WithLinks = ({ theme }: any) => {
3131
<UserBlock
3232
theme={theme}
3333
name="Emmitt O. Lum"
34-
linkProps={{ href: 'https://www.lumapps.com', target: '_blank' }}
34+
linkProps={{
35+
href: 'https://www.lumapps.com',
36+
target: '_blank',
37+
}}
3538
fields={['Creative developer', 'Denpasar']}
3639
avatarProps={{ image: avatarImageKnob(), alt: 'Avatar' }}
3740
size={size}

packages/lumx-react/src/components/user-block/UserBlock.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export const UserBlock: Comp<UserBlockProps, HTMLDivElement> = forwardRef((props
146146
>
147147
{avatarProps && (
148148
<Avatar
149+
linkAs={linkAs}
149150
linkProps={linkProps}
150151
{...avatarProps}
151152
className={classNames(`${CLASSNAME}__avatar`, avatarProps.className)}

0 commit comments

Comments
 (0)