Skip to content

Commit 5d862ba

Browse files
GGcode1llambda
authored andcommitted
whitespace cleanup
1 parent b8d898a commit 5d862ba

21 files changed

+58
-81
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Changelog
1010
- Package Updates
1111
- package-lock.json
1212

13-
1413
## v1.0.0 2017-2-2
1514

1615
- Initial release

src/client/components/car.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export default class Sidebar extends React.Component {
1111
</path>
1212
</g>
1313
</svg>
14-
1514
);
1615
}
1716

src/client/components/device-editor.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import * as React from 'react';
32
import { connect } from 'react-redux';
43
import { useParams } from "react-router-dom";
@@ -99,7 +98,7 @@ function DeviceEditor(props) {
9998
<div className="col-md-10">
10099
<Field className="form-control" name="phone" />
101100
</div>
102-
</div>
101+
</div>
103102
<div className="form-group">
104103
<label className="col-md-2 control-label">Network Provider (Carrier)</label>
105104
<div className="col-md-10">
@@ -111,13 +110,13 @@ function DeviceEditor(props) {
111110
<div className="col-md-10">
112111
<Field className="form-control" name="status" />
113112
</div>
114-
</div>
113+
</div>
115114
<div className="form-group">
116115
<label className="col-md-2 control-label">Organization ID</label>
117116
<div className="col-md-10">
118117
{ createOrgSelector(orgsByID) }
119118
</div>
120-
</div>
119+
</div>
121120
<div className="buttons-right">
122121
<button
123122
className="btn btn-default"
@@ -137,7 +136,7 @@ function DeviceEditor(props) {
137136
</div>
138137
</form>
139138
)}
140-
</Formik>
139+
</Formik>
141140
</div>
142141
<div className="col-sm-3" />
143142
</div>

src/client/components/devices.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React from 'react';
32
import { connect } from 'react-redux';
43
import * as classnames from 'classnames';
@@ -52,7 +51,7 @@ function deleteDevice(device) {
5251
toast.error(`Failed to delete user ${device.imei} : ${err.message}`);
5352
});
5453
}
55-
}
54+
}
5655
]
5756
});
5857
};

src/client/components/errors.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React, { useState, useEffect} from 'react';
32

43
import moment from 'moment';

src/client/components/events.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React, { Fragment } from 'react';
32
import * as PropTypes from 'prop-types';
43
import { connect } from 'react-redux';

src/client/components/fleets.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React, { useState } from 'react';
32
import { connect } from 'react-redux';
43
import { useParams } from "react-router-dom";
@@ -32,7 +31,7 @@ function deleteFleet(fleet) {
3231
toast.error(`Failed to delete fleet ${fleet.name}: ${err.message}`);
3332
});
3433
}
35-
}
34+
}
3635
]
3736
});
3837
};
@@ -76,7 +75,7 @@ function Fleets({ fleetsByID, vehiclesByID }) {
7675
};
7776

7877
const cancel = () => {
79-
78+
8079
}
8180

8281
const changeColor = color => {
@@ -169,7 +168,7 @@ function Fleets({ fleetsByID, vehiclesByID }) {
169168
className="form-control"
170169
value={ selectedFleet.name }
171170
onChange={ ev => {
172-
// selectedFleet.name = ev.target.value;
171+
// selectedFleet.name = ev.target.value;
173172
selectFleet(Object.assign({}, selectedFleet, {name: ev.target.value}));
174173
} }
175174
/>

src/client/components/jobs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function Jobs() {
4646
}
4747
doLoad();
4848
const timer = setInterval(doLoad, 250);
49-
return () => clearInterval(timer);
49+
return () => clearInterval(timer);
5050
}
5151
}, [autoReload]);
5252

src/client/components/navbar.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React, { useState } from 'react';
32
import { connect } from 'react-redux';
43
import * as moment from 'moment';
@@ -18,7 +17,7 @@ import {
1817
NavLink,
1918
useParams
2019
} from "react-router-dom";
21-
20+
2221
const clickOutsideConfig = {
2322
handleClickOutside: () => Navbar.handleClickOutside
2423
};
@@ -27,11 +26,10 @@ function Navbar(props) {
2726
const [adminToolsOpen, setAdminToolsOpen] = useState(false);
2827
const toggleAdminToolsOpen = () => setAdminToolsOpen(!adminToolsOpen);
2928
const [orgToolsOpen, setOrgToolsOpen] = useState(false);
30-
3129
const { orgId } = useParams();
3230

3331
Navbar.handleClickOutside = () => { setAdminToolsOpen(false) }
34-
32+
3533
const formatLastUpdated = () => {
3634
const { lastUpdated, metric } = props;
3735
if (!lastUpdated) {
@@ -55,7 +53,7 @@ function Navbar(props) {
5553

5654
const renderConnectivity = () => {
5755
const { dispatch, realTimeUpdates, user } = props;
58-
56+
5957
if (!user.username) {
6058
return null;
6159
}
@@ -71,7 +69,7 @@ function Navbar(props) {
7169
}
7270
}}
7371
style={{color: realTimeUpdates ? '' : '' }}>
74-
72+
7573
{ realTimeUpdates && `Last update: ${formatLastUpdated()} ⚡` }
7674
{ !realTimeUpdates && 'Real-time disconnected ' }
7775
{ !realTimeUpdates && <img src={ xcloudSvg } width="24" height="24" /> }
@@ -171,7 +169,7 @@ function Navbar(props) {
171169
return (
172170
<ul className="nav navbar-nav navbar-right">
173171
{ isAdmin && !orgId ? renderSiteAdminNav() :
174-
user.username &&
172+
user.username &&
175173
<li>
176174
<NavLink to="/orgs" activeClassName="active-nav">Back To Organizations</NavLink>
177175
</li> }
@@ -189,10 +187,9 @@ function Navbar(props) {
189187
<li>
190188
<NavLink exact to="/" activeClassName="active-nav"></NavLink>
191189
</li>
192-
</ul>
190+
</ul>
193191
);
194-
195-
}
192+
}
196193

197194
const { orgsByID } = props;
198195

@@ -210,10 +207,10 @@ function Navbar(props) {
210207
<a>{ getWelcomeText() }</a>
211208
<br />
212209
{ renderConnectivity() }
213-
</li>
210+
</li>
214211
</div>
215-
{ renderLeftNav() }
216-
{ renderRightNav() }
212+
{ renderLeftNav() }
213+
{ renderRightNav() }
217214
</div>
218215
</nav>
219216
);

src/client/components/organization-editor.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function OrganizationEditor(props) {
3030
city: org.city,
3131
state: org.state,
3232
zip: org.zip,
33-
country: org.country,
33+
country: org.country,
3434
}}
3535
validate={values => {
3636
const errors = {};
@@ -110,7 +110,7 @@ function OrganizationEditor(props) {
110110
<div className="col-md-10">
111111
<Field className="form-control" name="country" />
112112
</div>
113-
</div>
113+
</div>
114114
<div className="form-group">
115115
<label className="col-md-2 control-label">ID</label>
116116
<div className="col-md-10">
@@ -123,7 +123,7 @@ function OrganizationEditor(props) {
123123
value={ values.id }
124124
/>
125125
</div>
126-
</div>
126+
</div>
127127
<div className="buttons-right">
128128
<button
129129
className="btn btn-default"
@@ -132,7 +132,7 @@ function OrganizationEditor(props) {
132132
window.history.back();
133133
} }
134134
>Cancel</button>
135-
<span> </span>
135+
<span> </span>
136136
<button
137137
className="btn btn-success"
138138
disabled={ isSubmitting }
@@ -143,7 +143,7 @@ function OrganizationEditor(props) {
143143
</div>
144144
</form>
145145
)}
146-
</Formik>
146+
</Formik>
147147
</div>
148148
<div className="col-sm-3" />
149149
</div>

0 commit comments

Comments
 (0)