changed enableViewModeToggle prop to showQR

This commit is contained in:
Sadaqat Ali 2022-08-15 19:26:43 +05:00
parent eec3220ff6
commit c2b60b704a
3 changed files with 5 additions and 5 deletions

View File

@ -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}
/> />
); );
}} }}

View File

@ -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}

View File

@ -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 && (