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