Skip to content

Commit

Permalink
rename edit value page
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Jul 3, 2024
1 parent 64fca65 commit 256ca29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ const SettingsModalStackNavigator = createModalStackNavigator<SettingsNavigatorP
[SCREENS.WORKSPACE.REPORT_FIELDS_LIST_VALUES]: () => require<ReactComponentModule>('../../../../pages/workspace/reportFields/ReportFieldListValuesPage').default,
[SCREENS.WORKSPACE.REPORT_FIELDS_ADD_VALUE]: () => require<ReactComponentModule>('../../../../pages/workspace/reportFields/ReportFieldAddListValuePage').default,
[SCREENS.WORKSPACE.REPORT_FIELDS_VALUE_SETTINGS]: () => require<ReactComponentModule>('../../../../pages/workspace/reportFields/ValueSettingsPage').default,
[SCREENS.WORKSPACE.REPORT_FIELDS_EDIT_VALUE]: () => require<ReactComponentModule>('../../../../pages/workspace/reportFields/EditValuePage').default,
[SCREENS.WORKSPACE.REPORT_FIELDS_EDIT_VALUE]: () => require<ReactComponentModule>('../../../../pages/workspace/reportFields/ReportFieldEditValuePage').default,
});

const EnablePaymentsStackNavigator = createModalStackNavigator<EnablePaymentsNavigatorParamList>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ import ONYXKEYS from '@src/ONYXKEYS';
import type SCREENS from '@src/SCREENS';
import INPUT_IDS from '@src/types/form/WorkspaceReportFieldsForm';

type EditValuePageProps = StackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.REPORT_FIELDS_EDIT_VALUE>;
type ReportFieldEditValuePageProps = StackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.REPORT_FIELDS_EDIT_VALUE>;

function EditValuePage({
function ReportFieldEditValuePage({
route: {
params: {policyID, valueIndex},
},
}: EditValuePageProps) {
}: ReportFieldEditValuePageProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();
const {inputCallbackRef} = useAutoFocusInput();
Expand Down Expand Up @@ -62,7 +62,7 @@ function EditValuePage({
<ScreenWrapper
includeSafeAreaPaddingBottom={false}
style={styles.defaultModalContainer}
testID={EditValuePage.displayName}
testID={ReportFieldEditValuePage.displayName}
shouldEnableMaxHeight
>
<HeaderWithBackButton
Expand Down Expand Up @@ -93,6 +93,6 @@ function EditValuePage({
);
}

EditValuePage.displayName = 'EditValuePage';
ReportFieldEditValuePage.displayName = 'ReportFieldEditValuePage';

export default EditValuePage;
export default ReportFieldEditValuePage;

0 comments on commit 256ca29

Please sign in to comment.