-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
36 lines (27 loc) · 834 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { Amplify, Auth, DataStore } from 'aws-amplify';
import awsmobile from './aws-exports';
import './App.css';
import "@aws-amplify/ui-react/styles.css";
import React from 'react';
import Menu from './ui-components/Menu';
import { withAuthenticator, View, FileUploader} from '@aws-amplify/ui-react';
Amplify.configure(awsmobile);
function App({signOut, user}) {
// Ran only once
/*React.useEffect(() => {
DataStore.stop().then(() => {
console.log("Datastore stopped. Starting...");
DataStore.start().then(() => {
console.log("Datastore started!");
});
});
}, []);*/
return (
<View className="App">
<meta name="viewport" content="width=device-width, user-scalable=no"></meta>
<Menu/>
</View>
);
}
export default withAuthenticator(App);
//export default App;