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

View File

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

View File

@ -36,7 +36,7 @@ const FeedScreen = () => {
<AccountContainer>
{({ currentAccount }) => (
<Fragment>
<Header enableViewModeToggle={true} />
<Header showQR={true} />
<SafeAreaView style={styles.container} onLayout={_lazyLoadContent}>
{lazyLoad && (