This commit is contained in:
2023-10-15 06:37:46 +03:00
parent 67258c8114
commit 4f25112b5e
70 changed files with 482 additions and 64 deletions

View File

@@ -3,13 +3,17 @@ import LoginScreen from "../LoginScreen/LoginScreen";
import MainScreen from "../MainScreen/MainScreen";
import SearchBar from "../../components/SearchBar/SearchBar";
import React from "react";
import {background} from "../../css/colors";
import {useSelector} from "react-redux";
import {RootState} from "../../redux/store";
function CommonPage() {
const dim = useSelector((state: RootState) => state.interface.dim);
return (
<View style={styles.main}>
<MainScreen/>
<View style={[styles.overlay, {display: dim ? 'flex' : 'none'}]}/>
</View>
)
@@ -20,7 +24,13 @@ const styles = StyleSheet.create({
display: "flex",
flexDirection: "column",
flexGrow: 1,
flex: 1
flex: 1,
backgroundColor: background
},
overlay: {
...StyleSheet.absoluteFillObject,
backgroundColor: 'rgba(0, 0, 0, 0.5)',
zIndex: 2,
}
});