mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +01:00
Merge pull request #38 from Kingscliq/master
refactor of if else to tenary for simplicity
This commit is contained in:
commit
7bd4b8a665
1 changed files with 2 additions and 3 deletions
|
@ -5,8 +5,7 @@ import './index.css';
|
||||||
|
|
||||||
function Router() {
|
function Router() {
|
||||||
const { streamData } = useMovie();
|
const { streamData } = useMovie();
|
||||||
if (streamData) return <MovieView />;
|
return streamData ? <MovieView /> : <SearchView />;
|
||||||
else return <SearchView />;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
|
Loading…
Reference in a new issue