Skip to content

Commit

Permalink
Use handle... standard naming for callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
paullinator committed Aug 15, 2023
1 parent 14aa5da commit 73c4f24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/scenes/CryptoExchangeQuoteScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class CryptoExchangeQuoteScreenComponent extends React.Component<Props, S
return <CircleTimer timeExpired={async () => await timeExpired(navigation, swapInfo, onApprove)} expiration={expirationDate} />
}

showExplanationForEstimate = async () => {
handleForEstimateExplanation = async () => {
await Airship.show<'ok' | undefined>(bridge => (
<ButtonsModal
bridge={bridge}
Expand All @@ -98,7 +98,7 @@ export class CryptoExchangeQuoteScreenComponent extends React.Component<Props, S
))
}

showExplanationForCanBePartial = async () => {
handleCanBePartialExplanation = async () => {
const { canBePartial, maxFulfillmentSeconds } = this.props.route.params.swapInfo.quote
let canBePartialString: string | undefined
if (canBePartial === true) {
Expand Down Expand Up @@ -173,7 +173,7 @@ export class CryptoExchangeQuoteScreenComponent extends React.Component<Props, S
message={lstrings.estimated_exchange_message}
type="warning"
marginRem={[1, 1]}
onPress={this.showExplanationForEstimate}
onPress={this.handleForEstimateExplanation}
/>
)}
{quote.canBePartial === true && (
Expand All @@ -182,7 +182,7 @@ export class CryptoExchangeQuoteScreenComponent extends React.Component<Props, S
message={lstrings.can_be_partial_quote_message}
type="warning"
marginRem={[1, 1]}
onPress={this.showExplanationForCanBePartial}
onPress={this.handleCanBePartialExplanation}
/>
)}

Expand Down

0 comments on commit 73c4f24

Please sign in to comment.