Commit 88263595 by HaOuiha

swap table

parent 14c40379
...@@ -15,9 +15,9 @@ class App extends Component { ...@@ -15,9 +15,9 @@ class App extends Component {
componentDidMount = () => { componentDidMount = () => {
app.auth().onAuthStateChanged(async user => { app.auth().onAuthStateChanged(async user => {
if (user) { if (user) {
this.props.fireStoreGetConfig && (await this.props.fireStoreGetConfig()); await this.props.fireStoreGetConfig();
this.props.fireStoreGetCurrentUser && (await this.props.fireStoreGetCurrentUser()); await this.props.fireStoreGetCurrentUser();
this.props.getAllDevicesInfo && (await this.props.getAllDevicesInfo()); await this.props.getAllDevicesInfo();
this.setState({ this.setState({
authenticated: true, authenticated: true,
loading: false, loading: false,
......
...@@ -220,7 +220,7 @@ class Home extends Component { ...@@ -220,7 +220,7 @@ class Home extends Component {
data[5].length > 0 && data[5][data[5].length - i - 1] ? data[5][data[5].length - i - 1][1] : '', data[5].length > 0 && data[5][data[5].length - i - 1] ? data[5][data[5].length - i - 1][1] : '',
timestamp: data[5].length > 0 && moment(data[1][data[1].length - i - 1][0]).format('D/M/YY HH:mm'), timestamp: data[5].length > 0 && moment(data[1][data[1].length - i - 1][0]).format('D/M/YY HH:mm'),
}; };
table.push(v); table.unshift(v);
} }
return table; return table;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment