mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Rename link to button
This commit is contained in:
parent
04398b7853
commit
f9e158ff68
1 changed files with 3 additions and 3 deletions
|
@ -141,10 +141,10 @@ export default class ReactionsRow extends React.PureComponent {
|
||||||
// Show the first MAX_ITEMS if there are MAX_ITEMS + 1 or more items.
|
// Show the first MAX_ITEMS if there are MAX_ITEMS + 1 or more items.
|
||||||
// The "+ 1" ensure that the "show all" reveals something that takes up
|
// The "+ 1" ensure that the "show all" reveals something that takes up
|
||||||
// more space than the button itself.
|
// more space than the button itself.
|
||||||
let showAllLink;
|
let showAllButton;
|
||||||
if ((items.length > MAX_ITEMS_WHEN_LIMITED + 1) && !showAll) {
|
if ((items.length > MAX_ITEMS_WHEN_LIMITED + 1) && !showAll) {
|
||||||
items = items.slice(0, MAX_ITEMS_WHEN_LIMITED);
|
items = items.slice(0, MAX_ITEMS_WHEN_LIMITED);
|
||||||
showAllLink = <a
|
showAllButton = <a
|
||||||
className="mx_ReactionsRow_showAll"
|
className="mx_ReactionsRow_showAll"
|
||||||
href="#"
|
href="#"
|
||||||
onClick={this.onShowAllClick}
|
onClick={this.onShowAllClick}
|
||||||
|
@ -155,7 +155,7 @@ export default class ReactionsRow extends React.PureComponent {
|
||||||
|
|
||||||
return <div className="mx_ReactionsRow">
|
return <div className="mx_ReactionsRow">
|
||||||
{items}
|
{items}
|
||||||
{showAllLink}
|
{showAllButton}
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue