Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Renames Geo to Locations
  • Loading branch information
Vigasaurus committed Oct 13, 2021
commit fbcca9c177bceae2d727b24b42e41afa1d57156e
4 changes: 2 additions & 2 deletions assets/js/dashboard/historical.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CurrentVisitors from './stats/current-visitors'
import VisitorGraph from './stats/visitor-graph'
import Sources from './stats/sources'
import Pages from './stats/pages'
import Geo from './stats/geo';
import Locations from './stats/locations';
import Devices from './stats/devices'
import Conversions from './stats/conversions'
import { withPinnedHeader } from './pinned-header-hoc';
Expand Down Expand Up @@ -47,7 +47,7 @@ class Historical extends React.Component {
<Pages site={this.props.site} query={this.props.query} />
</div>
<div className="items-start justify-between block w-full md:flex">
<Geo site={this.props.site} query={this.props.query} />
<Locations site={this.props.site} query={this.props.query} />
<Devices site={this.props.site} query={this.props.query} />
</div>
{ this.renderConversions() }
Expand Down
4 changes: 2 additions & 2 deletions assets/js/dashboard/realtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Filters from './filters'
import VisitorGraph from './stats/visitor-graph'
import Sources from './stats/sources'
import Pages from './stats/pages'
import Geo from './stats/geo'
import Locations from './stats/locations'
import Devices from './stats/devices'
import Conversions from './stats/conversions'
import { withPinnedHeader } from './pinned-header-hoc';
Expand Down Expand Up @@ -45,7 +45,7 @@ class Realtime extends React.Component {
<Pages site={this.props.site} query={this.props.query} timer={this.props.timer} />
</div>
<div className="items-start justify-between block w-full md:flex">
<Geo site={this.props.site} query={this.props.query} timer={this.props.timer} />
<Locations site={this.props.site} query={this.props.query} timer={this.props.timer} />
<Devices site={this.props.site} query={this.props.query} timer={this.props.timer} />
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const labelFor = {
'cities': 'Cities',
}

export default class Geo extends React.Component {
export default class Locations extends React.Component {
constructor(props) {
super(props)
this.tabKey = `geoTab__${ props.site.domain}`
Expand Down Expand Up @@ -71,7 +71,7 @@ export default class Geo extends React.Component {
>
<div className="w-full flex justify-between">
<h3 className="font-bold dark:text-gray-100">
{labelFor[this.state.mode] || 'Geolocation'}
{labelFor[this.state.mode] || 'Locations'}
</h3>
<ul className="flex font-medium text-xs text-gray-500 dark:text-gray-400 space-x-2">
{ this.renderPill('Map', 'map') }
Expand Down