-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: The continue button has some extra bottom padding #48179
Merged
aldo-expensify
merged 14 commits into
Expensify:main
from
BhuvaneshPatil:47087-continue-btn-bottom-padding
Oct 1, 2024
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8c123cb
fix: The continue button has some extra bottom padding
BhuvaneshPatil 26751ba
Merge branch 'main' of https://github.com/Expensify/App into 47087-co…
BhuvaneshPatil 1e8a8da
Merge branch 'main' of https://github.com/Expensify/App into 47087-co…
BhuvaneshPatil 2daf189
Merge branch 'main' of https://github.com/Expensify/App into 47087-co…
BhuvaneshPatil 06be7f6
Merge branch 'main' of https://github.com/Expensify/App into 47087-co…
BhuvaneshPatil 37f67d8
Merge branch 'main' of https://github.com/Expensify/App into 47087-co…
BhuvaneshPatil a0d2b11
resolve conflicts
BhuvaneshPatil 2bebc7d
resolve type error
BhuvaneshPatil 78408b9
Merge branch 'main' of https://github.com/Expensify/App into 47087-co…
BhuvaneshPatil 012a1f4
Merge branch 'main' of https://github.com/Expensify/App into 47087-co…
BhuvaneshPatil 15e61bb
resolve conflicts
BhuvaneshPatil 93a7e2f
change withOnyx to useOnyx
BhuvaneshPatil 95bdd86
fix lint error cause of onyx
BhuvaneshPatil cd8d090
fix lint error
BhuvaneshPatil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,16 @@ | ||
import type {RouteProp} from '@react-navigation/native'; | ||
import type {StackScreenProps} from '@react-navigation/stack'; | ||
import type {OnyxEntry} from 'react-native-onyx'; | ||
import type {WithCurrentUserPersonalDetailsProps} from '@components/withCurrentUserPersonalDetails'; | ||
import type {OnboardingModalNavigatorParamList} from '@libs/Navigation/types'; | ||
import type {OnboardingPurposeType} from '@src/CONST'; | ||
import type SCREENS from '@src/SCREENS'; | ||
|
||
type OnboardingPersonalDetailsProps = Record<string, unknown> & StackScreenProps<OnboardingModalNavigatorParamList, typeof SCREENS.ONBOARDING.PERSONAL_DETAILS>; | ||
|
||
type BaseOnboardingPersonalDetailsOnyxProps = { | ||
/** Saved onboarding purpose selected by the user */ | ||
onboardingPurposeSelected: OnyxEntry<OnboardingPurposeType>; | ||
type BaseOnboardingPersonalDetailsProps = WithCurrentUserPersonalDetailsProps & { | ||
/* Whether to use native styles tailored for native devices */ | ||
shouldUseNativeStyles: boolean; | ||
|
||
/** Saved onboarding admin chat report ID */ | ||
onboardingAdminsChatReportID: OnyxEntry<string>; | ||
|
||
/** Saved onboarding policy ID */ | ||
onboardingPolicyID: OnyxEntry<string>; | ||
route: RouteProp<OnboardingModalNavigatorParamList, typeof SCREENS.ONBOARDING.PERSONAL_DETAILS>; | ||
}; | ||
|
||
type BaseOnboardingPersonalDetailsProps = WithCurrentUserPersonalDetailsProps & | ||
BaseOnboardingPersonalDetailsOnyxProps & { | ||
/* Whether to use native styles tailored for native devices */ | ||
shouldUseNativeStyles: boolean; | ||
|
||
route: RouteProp<OnboardingModalNavigatorParamList, typeof SCREENS.ONBOARDING.PERSONAL_DETAILS>; | ||
}; | ||
|
||
export type {OnboardingPersonalDetailsProps, BaseOnboardingPersonalDetailsOnyxProps, BaseOnboardingPersonalDetailsProps}; | ||
export type {OnboardingPersonalDetailsProps, BaseOnboardingPersonalDetailsProps}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,15 @@ import useThemeStyles from '@hooks/useThemeStyles'; | |
import BaseOnboardingWork from './BaseOnboardingWork'; | ||
import type {OnboardingWorkProps} from './types'; | ||
|
||
function OnboardingWork({...rest}: Omit<OnboardingWorkProps, 'shouldUseNativeStyles'>) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as ^ |
||
function OnboardingWork(props: OnboardingWorkProps) { | ||
const styles = useThemeStyles(); | ||
return ( | ||
<FocusTrapForScreens> | ||
<View style={styles.h100}> | ||
<BaseOnboardingWork | ||
shouldUseNativeStyles={false} | ||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
{...rest} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as ^ |
||
{...props} | ||
/> | ||
</View> | ||
</FocusTrapForScreens> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
import type {StackScreenProps} from '@react-navigation/stack'; | ||
import type {OnyxEntry} from 'react-native-onyx'; | ||
import type {OnboardingModalNavigatorParamList} from '@libs/Navigation/types'; | ||
import type {OnboardingPurposeType} from '@src/CONST'; | ||
import type SCREENS from '@src/SCREENS'; | ||
|
||
type OnboardingWorkProps = Record<string, unknown> & StackScreenProps<OnboardingModalNavigatorParamList, typeof SCREENS.ONBOARDING.WORK>; | ||
|
||
type BaseOnboardingWorkOnyxProps = { | ||
/** Saved onboarding purpose selected by the user */ | ||
onboardingPurposeSelected: OnyxEntry<OnboardingPurposeType>; | ||
|
||
/** Saved onboarding purpose selected by the user */ | ||
onboardingPolicyID: OnyxEntry<string>; | ||
type BaseOnboardingWorkProps = OnboardingWorkProps & { | ||
/* Whether to use native styles tailored for native devices */ | ||
shouldUseNativeStyles: boolean; | ||
}; | ||
|
||
type BaseOnboardingWorkProps = OnboardingWorkProps & | ||
BaseOnboardingWorkOnyxProps & { | ||
/* Whether to use native styles tailored for native devices */ | ||
shouldUseNativeStyles: boolean; | ||
}; | ||
|
||
export type {OnboardingWorkProps, BaseOnboardingWorkOnyxProps, BaseOnboardingWorkProps}; | ||
export type {OnboardingWorkProps, BaseOnboardingWorkProps}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why are these changes required ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was getting lint failure because of
withOnyx
so I migrated that. After that it started giving lint error for this line. So I solved it. Let me know if I should undo the changes for withOnyx hook