Skip to content

Commit

Permalink
remove onCurrencyButtonPress and props values
Browse files Browse the repository at this point in the history
  • Loading branch information
teneeto committed Feb 28, 2024
1 parent bddbd10 commit c3c4a07
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/EditRequestTaxAmountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ type EditRequestTaxAmountPageProps = {

/** Callback to fire when the Save button is pressed */
onSubmit: () => void;

/** Callback to fire when we press on the currency */
onNavigateToCurrency: () => void;
};

function EditRequestTaxAmountPage({defaultAmount, defaultTaxAmount, defaultCurrency, onNavigateToCurrency, onSubmit}: EditRequestTaxAmountPageProps) {
function EditRequestTaxAmountPage({defaultAmount, defaultTaxAmount, defaultCurrency, onSubmit}: EditRequestTaxAmountPageProps) {
const {translate} = useLocalize();
const textInput = useRef<BaseTextInputRef>(null);

Expand Down Expand Up @@ -57,7 +54,6 @@ function EditRequestTaxAmountPage({defaultAmount, defaultTaxAmount, defaultCurre
taxAmount={defaultTaxAmount}
ref={textInput}
isCurrencyPressable={false}
onCurrencyButtonPress={onNavigateToCurrency}
onSubmitButtonPress={onSubmit}
isEditing
/>
Expand Down

0 comments on commit c3c4a07

Please sign in to comment.