Searchable addressbook: upgrade material-ui.

master
Tom Hacohen 6 years ago
parent a936ef2b64
commit 40ad15673d

@ -1,17 +1,15 @@
import * as React from 'react'; import * as React from 'react';
import TextField from 'material-ui/TextField'; import TextField from '@material-ui/core/TextField';
import IconButton from 'material-ui/IconButton'; import IconButton from '@material-ui/core/IconButton';
import IconSearch from 'material-ui/svg-icons/action/search'; import IconSearch from '@material-ui/icons/Search';
import IconClear from 'material-ui/svg-icons/content/clear'; import IconClear from '@material-ui/icons/Clear';
import { ContactType } from '../pim-types'; import { ContactType } from '../pim-types';
import AddressBook from '../components/AddressBook'; import AddressBook from '../components/AddressBook';
import { getPalette } from '../App';
class SearchableAddressBook extends React.PureComponent { class SearchableAddressBook extends React.PureComponent {
props: { props: {
entries: Array<ContactType>, entries: Array<ContactType>,
@ -50,8 +48,7 @@ class SearchableAddressBook extends React.PureComponent {
name="searchQuery" name="searchQuery"
value={this.state.searchQuery} value={this.state.searchQuery}
style={{fontSize: '120%', marginLeft: 20}} style={{fontSize: '120%', marginLeft: 20}}
hintText="Find Contacts" placeholder="Find Contacts"
hintStyle={{color: getPalette('accent1Color')}}
onChange={this.handleInputChange} onChange={this.handleInputChange}
/> />
{this.state.searchQuery && {this.state.searchQuery &&

Loading…
Cancel
Save