fix: page
This commit is contained in:
+7
-10
@@ -4,17 +4,17 @@ import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view
|
|||||||
import { SafeAreaView } from "react-native-safe-area-context";
|
import { SafeAreaView } from "react-native-safe-area-context";
|
||||||
import React from "reactn";
|
import React from "reactn";
|
||||||
import { responsiveHeight } from "../actions/responsiveSizes.js";
|
import { responsiveHeight } from "../actions/responsiveSizes.js";
|
||||||
|
import { icons } from "../assets";
|
||||||
import BaseHeader from "../components/BaseHeader";
|
import BaseHeader from "../components/BaseHeader";
|
||||||
import ConnectBtn from "../components/ConnectBtn.js";
|
import ConnectBtn from "../components/ConnectBtn.js";
|
||||||
import NavigateHeader from "../components/NavigateHeader";
|
import NavigateHeader from "../components/NavigateHeader";
|
||||||
import ShareBtn from "../components/ShareBtn/ShareBtn";
|
import ShareBtn from "../components/ShareBtn/ShareBtn";
|
||||||
import { isWeb } from "../hooks/useLayoutType.js";
|
import { isWeb } from "../hooks/useLayoutType.js";
|
||||||
import { gutters } from "../styles";
|
|
||||||
import { icons } from "../assets";
|
|
||||||
import { FONT_FAMILY } from "../styles/Fonts";
|
|
||||||
import { useUserData } from "../providers/UserDataProvider";
|
|
||||||
import { push } from "../navigation/NavigationService";
|
|
||||||
import { Routes } from "../navigation";
|
import { Routes } from "../navigation";
|
||||||
|
import { push } from "../navigation/NavigationService";
|
||||||
|
import { useUserData } from "../providers/UserDataProvider";
|
||||||
|
import { gutters } from "../styles";
|
||||||
|
import { FONT_FAMILY } from "../styles/Fonts";
|
||||||
|
|
||||||
export default ({
|
export default ({
|
||||||
children,
|
children,
|
||||||
@@ -45,10 +45,7 @@ export default ({
|
|||||||
blurIntensity = 0,
|
blurIntensity = 0,
|
||||||
backgroundColor = "#000",
|
backgroundColor = "#000",
|
||||||
}) => {
|
}) => {
|
||||||
const {
|
const { currentUID = null, currentUserData = null } = useUserData?.() || {};
|
||||||
currentUID = null,
|
|
||||||
currentUserData = null,
|
|
||||||
} = useUserData?.() || {};
|
|
||||||
|
|
||||||
const coinBalance = React.useMemo(() => {
|
const coinBalance = React.useMemo(() => {
|
||||||
const data = currentUserData || {};
|
const data = currentUserData || {};
|
||||||
@@ -118,7 +115,7 @@ export default ({
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
minHeight: isWeb ? "100svh" : "100%",
|
minHeight: isWeb ? "100svh" : "100%",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
paddingHorizontal: isWeb ? gutters : 0,
|
// paddingHorizontal: isWeb ? gutters : 0,
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor: backgroundColor,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user