use ESM, add server setup, cleanup
Change-Id: Iafac35c2082523ae98c31017d9bad5c4d6e18ef3
diff --git a/client/src/components/NewContactForm.js b/client/src/components/NewContactForm.js
index c98c9b4..5636be2 100644
--- a/client/src/components/NewContactForm.js
+++ b/client/src/components/NewContactForm.js
@@ -1,7 +1,6 @@
import React from 'react'
-import SearchIcon from '@material-ui/icons/Search';
-import InputBase from '@material-ui/core/InputBase';
-import InputAdornment from '@material-ui/core/InputAdornment';
+import { InputBase, InputAdornment } from '@material-ui/core';
+import { SearchRounded } from '@material-ui/icons';
class NewContactForm extends React.Component {
constructor(props) {
@@ -40,11 +39,8 @@
type="search"
placeholder="Ajouter un contact"
onChange={this.handleChange}
- startAdornment={
- <InputAdornment position="start">
- <SearchIcon />
- </InputAdornment>
- } />
+ startAdornment={<InputAdornment position="start"><SearchRounded /></InputAdornment>}
+ />
</form>
)
}