mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 05:42:33 +03:00
changed enableViewModeToggle prop to showQR
This commit is contained in:
parent
eec3220ff6
commit
c2b60b704a
@ -17,7 +17,7 @@ const HeaderContainer = ({
|
|||||||
navigation,
|
navigation,
|
||||||
handleOnBackPress,
|
handleOnBackPress,
|
||||||
hideUser,
|
hideUser,
|
||||||
enableViewModeToggle,
|
showQR,
|
||||||
}) => {
|
}) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ const HeaderContainer = ({
|
|||||||
reputation={reputation}
|
reputation={reputation}
|
||||||
username={get(_user, 'name')}
|
username={get(_user, 'name')}
|
||||||
hideUser={hideUser}
|
hideUser={hideUser}
|
||||||
enableViewModeToggle={enableViewModeToggle}
|
showQR={showQR}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
@ -28,7 +28,7 @@ const HeaderView = ({
|
|||||||
username,
|
username,
|
||||||
navigation,
|
navigation,
|
||||||
hideUser,
|
hideUser,
|
||||||
enableViewModeToggle,
|
showQR,
|
||||||
}) => {
|
}) => {
|
||||||
const [isSearchModalOpen, setIsSearchModalOpen] = useState(false);
|
const [isSearchModalOpen, setIsSearchModalOpen] = useState(false);
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
@ -110,7 +110,7 @@ const HeaderView = ({
|
|||||||
</View>
|
</View>
|
||||||
) : (
|
) : (
|
||||||
<View style={styles.backButtonWrapper}>
|
<View style={styles.backButtonWrapper}>
|
||||||
{enableViewModeToggle && (
|
{showQR && (
|
||||||
<IconButton
|
<IconButton
|
||||||
style={styles.viewIconContainer}
|
style={styles.viewIconContainer}
|
||||||
iconStyle={styles.viewIcon}
|
iconStyle={styles.viewIcon}
|
||||||
|
@ -36,7 +36,7 @@ const FeedScreen = () => {
|
|||||||
<AccountContainer>
|
<AccountContainer>
|
||||||
{({ currentAccount }) => (
|
{({ currentAccount }) => (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Header enableViewModeToggle={true} />
|
<Header showQR={true} />
|
||||||
<SafeAreaView style={styles.container} onLayout={_lazyLoadContent}>
|
<SafeAreaView style={styles.container} onLayout={_lazyLoadContent}>
|
||||||
|
|
||||||
{lazyLoad && (
|
{lazyLoad && (
|
||||||
|
Loading…
Reference in New Issue
Block a user