Skip to content

Commit

Permalink
Rename show_all_url to showAllUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Aksiutin committed May 6, 2021
1 parent adc0746 commit 020fbdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/react-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -36273,7 +36273,7 @@ var Dashboard = React.createClass({
return React.createElement("div", { className: "col-md-6 col-sm-6 widget", key: widget.id }, React.createElement(AvailableWidgetsMap[widget.component_type], {
title: widget.title,
url: widget.url,
show_all_url: widget.show_all_url,
showAllUrl: widget.show_all_url,
widgetId: widget.id,
icon: widget.icon,
editMode: this.props.editMode,
Expand Down Expand Up @@ -36355,10 +36355,10 @@ var ListWidget = React.createClass({
}

var title = this.props.title;
if (this.props.show_all_url != null) {
if (this.props.showAllUrl != null) {
title = React.createElement(
"a",
{ href: this.props.show_all_url },
{ href: this.props.showAllUrl },
title
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var Dashboard = React.createClass({
React.createElement(AvailableWidgetsMap[widget.component_type], {
title: widget.title,
url: widget.url,
show_all_url: widget.show_all_url,
showAllUrl: widget.show_all_url,
widgetId: widget.id,
icon: widget.icon,
editMode: this.props.editMode,
Expand Down
4 changes: 2 additions & 2 deletions src/components/ListWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ var ListWidget = React.createClass({
}

var { title } = this.props;
if (this.props.show_all_url != null) {
title = <a href={this.props.show_all_url}>{title}</a>
if (this.props.showAllUrl != null) {
title = <a href={this.props.showAllUrl}>{title}</a>
}

return (
Expand Down

0 comments on commit 020fbdd

Please sign in to comment.