Skip to content

Commit 070e944

Browse files
committed
UI - clean some warnings
1 parent bbebb99 commit 070e944

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

src/client/src/pages/Admin.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ const styles = theme => ({
2929
}
3030
});
3131

32-
33-
const executing = "executing"
34-
3532
class Admin extends Component {
3633
constructor(props) {
3734
super(props);

src/client/src/pages/DataView360/components/Adoptions.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ const StyledTableRow = withStyles((theme) => ({
3535
const PET_COUNT = 3;
3636

3737
class Adoptions extends Component {
38-
constructor(props) {
39-
super(props);
40-
}
4138

4239
getLatestPets(petList) {
4340
let retVal;
@@ -79,7 +76,7 @@ class Adoptions extends Component {
7976
{_.map(latestPets, (adoptionInfo, index) => {
8077

8178
const photoLink = _.get(adoptionInfo, "Photos.[0]");
82-
const photo = <img src={photoLink} style={{"maxWidth": "100px"}}/>
79+
const photo = <img src={photoLink} alt="animal" style={{"maxWidth": "100px"}}/>
8380

8481
return <StyledTableRow key={index}>
8582
<TableCell align="center">{adoptionInfo["Name"]}</TableCell>

src/client/src/pages/DataView360/components/ContactInfo.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ const StyledContact = withStyles((theme) => ({
1717

1818

1919
class ContactInfo extends Component {
20-
constructor(props) {
21-
super(props);
22-
}
23-
2420

2521
populate_participant_with_data_source(participant, participantData) {
2622
return {

src/client/src/pages/DataView360/components/SearchBar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ class SearchBar extends Component {
6666
}
6767

6868
selectParticipant() {
69-
let participants;
70-
7169
if (this.state.participantList != null) {
7270
const participantList = this.state.participantList.slice(0, LIST_LIMIT);
7371

74-
participants = _.map(participantList, person => {
72+
_.map(participantList, person => {
7573
return (<MenuItem value={person.contact_id} key={person.contact_id}>
7674
{person.name}
7775
{" "}

0 commit comments

Comments
 (0)