forked from hfellerhoff/sound-sampler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
27 lines (23 loc) · 680 Bytes
/
App.js
File metadata and controls
27 lines (23 loc) · 680 Bytes
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
import React, { useState } from "react";
import FileScreen from "./screens/FileScreen";
import LoadingScreen from "./screens/LoadingScreen";
const App = () => {
const [showLoadingScreen, setShowLoadingScreen] = useState(true);
const [isLoadingScreenAnimating, setIsLoadingScreenAnimating] = useState(
true
);
return (
<>
<FileScreen
isVisible={!showLoadingScreen}
onDoneLoading={() => setShowLoadingScreen(false)}
/>
<LoadingScreen
isVisible={showLoadingScreen}
isAnimating={isLoadingScreenAnimating}
onAnimateOut={() => setIsLoadingScreenAnimating(false)}
/>
</>
);
};
export default App;