diff --git a/components/Custom/HeaderButton.js b/components/Custom/HeaderButton.js
index 5e09cee..6c9edcf 100644
--- a/components/Custom/HeaderButton.js
+++ b/components/Custom/HeaderButton.js
@@ -13,7 +13,7 @@ function HeaderButton(props) {
);
diff --git a/components/Lists/WebSectionList.js b/components/Lists/WebSectionList.js
index af215b5..b0ec351 100644
--- a/components/Lists/WebSectionList.js
+++ b/components/Lists/WebSectionList.js
@@ -57,8 +57,6 @@ export default class WebSectionList extends React.PureComponent {
onFetchSuccess: Function;
onFetchError: Function;
getEmptySectionHeader: Function;
- showSnackBar: Function;
- hideSnackBar: Function;
constructor() {
super();
@@ -67,8 +65,6 @@ export default class WebSectionList extends React.PureComponent {
this.onFetchSuccess = this.onFetchSuccess.bind(this);
this.onFetchError = this.onFetchError.bind(this);
this.getEmptySectionHeader = this.getEmptySectionHeader.bind(this);
- this.showSnackBar = this.showSnackBar.bind(this);
- this.hideSnackBar = this.hideSnackBar.bind(this);
}
/**
@@ -159,16 +155,12 @@ export default class WebSectionList extends React.PureComponent {
/**
* Shows the error popup
*/
- showSnackBar() {
- this.setState({snackbarVisible: true})
- }
+ showSnackBar = () => this.setState({snackbarVisible: true});
/**
* Hides the error popup
*/
- hideSnackBar() {
- this.setState({snackbarVisible: false})
- }
+ hideSnackBar = () => this.setState({snackbarVisible: false});
render() {
let dataset = [];
@@ -177,17 +169,6 @@ export default class WebSectionList extends React.PureComponent {
const shouldRenderHeader = this.props.renderSectionHeader !== null;
return (
-
- {i18n.t("homeScreen.listUpdateFail")}
-
{/*$FlowFixMe*/}
{
onRefresh={this.onRefresh}/>
}
/>
+ {},
+ }}
+ duration={4000}
+ >
+ {i18n.t("homeScreen.listUpdateFail")}
+
);
}
diff --git a/screens/HomeScreen.js b/screens/HomeScreen.js
index f39617a..6b85bbf 100644
--- a/screens/HomeScreen.js
+++ b/screens/HomeScreen.js
@@ -32,16 +32,10 @@ type Props = {
theme: Object,
}
-type State = {
- imageModalVisible: boolean,
- imageList: Array