Skip to content

Commit

Permalink
Merge branch 'develop' into yomo-1943
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo authored Oct 14, 2024
2 parents 9ea2d60 + 0432939 commit 1d327ba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {
onLongPress={handleOnLongPressReceive}
/>

<Text style={styles.actionLabel}>{strings.receiveLabel}</Text>
<Text style={[styles.actionLabel, disabled && styles.disabledLabel]}>{strings.receiveLabel}</Text>
</View>

{!meta.isReadOnly && (
Expand All @@ -132,7 +132,7 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {
disabled={disabled}
/>

<Text style={styles.actionLabel}>{strings.sendLabel}</Text>
<Text style={[styles.actionLabel, disabled && styles.disabledLabel]}>{strings.sendLabel}</Text>
</View>

<View style={styles.centralized}>
Expand All @@ -144,7 +144,7 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {
disabled={disabled}
/>

<Text style={styles.actionLabel}>{strings.swapLabel}</Text>
<Text style={[styles.actionLabel, disabled && styles.disabledLabel]}>{strings.swapLabel}</Text>
</View>

<View style={styles.centralized}>
Expand All @@ -156,7 +156,7 @@ export const ActionsBanner = ({disabled = false}: {disabled: boolean}) => {
disabled={disabled}
/>

<Text style={styles.actionLabel}>{strings.exchange}</Text>
<Text style={[styles.actionLabel, disabled && styles.disabledLabel]}>{strings.exchange}</Text>
</View>
</>
)}
Expand All @@ -180,7 +180,10 @@ const useStyles = () => {
actionLabel: {
...atoms.pt_sm,
...atoms.body_3_sm_medium,
color: color.gray_max,
color: color.text_gray_medium,
},
disabledLabel: {
color: color.text_gray_low,
},
})

Expand Down
3 changes: 3 additions & 0 deletions packages/types/src/api/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ export class ApiErrorUnknown extends Error {}
export class ApiErrorNetwork extends Error {}
export class ApiErrorInvalidState extends Error {}
export class ApiErrorResponseMalformed extends Error {}
export class ApiErrorServiceUnavailable extends Error {}
export class ApiErrorMethodNotAllowed extends Error {}
export class ApiErrorContentNotAcceptable extends Error {}
3 changes: 3 additions & 0 deletions packages/types/src/api/status-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export enum ApiHttpStatusCode {
Unauthorized = 401,
Forbidden = 403,
NotFound = 404,
MethodNotAllowed = 405,
ContentNotAcceptable = 406,
TooEarly = 425,
TooManyRequests = 429,
InternalServerError = 500,
ServiceUnavailable = 503,
}

0 comments on commit 1d327ba

Please sign in to comment.