import React, { Component } from 'react';
import axios from 'axios';
import PawnedListItem from './PawnedListItem';
import './SearchField.css';
export default class SearchField extends Component {
constructor(props) {
super(props);
this.state = {
isPawnedEmail: '',
pawnedList: [],
intiated: false,
displayMessage: '',
displayMessageStyle: ''
};
this.onFocus = this.onFocus.bind(this);
this.onBlur = this.onBlur.bind(this);
this.checkIsPawned = this.checkIsPawned.bind(this);
this.breachItems = [];
this.displayMessage;
}
render() {
if (this.state.pawnedList.length > 0) {
this.breachItems = this.state.pawnedList.map((breach) => {
return