Skip to content

Commit

Permalink
fix(common): styling minors
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Aug 28, 2024
1 parent 37a4a3c commit f4f494c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions apps/wallet-mobile/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const Button = (props: ButtonProps) => {
outlineOnLight && styles.textOutlineOnLight,
outlineOnLight && shelleyTheme && styles.textShelleyOutlineOnLight,
outlineShelley && styles.textOutlineShelley,
props.disabled && styles.buttonDisabledText,
textStyles,
]}
>
Expand Down Expand Up @@ -153,6 +154,10 @@ const useStyles = () => {
},
buttonDisabled: {
opacity: 0.5,
color: color.gray_cmin,
},
buttonDisabledText: {
color: color.gray_cmin,
},
shelleyTheme: {
backgroundColor: color.primary_c500,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ErrorScreen = () => {
}

const useStyles = () => {
const {atoms} = useTheme()
const {atoms, color} = useTheme()

const styles = StyleSheet.create({
root: {
Expand All @@ -45,6 +45,7 @@ const useStyles = () => {
text: {
...atoms.heading_3_medium,
...atoms.text_center,
color: color.text_gray_max,
maxWidth: 340,
},
button: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const LoadingLinkScreen = () => {
}

const useStyles = () => {
const {atoms} = useTheme()
const {atoms, color} = useTheme()

const styles = StyleSheet.create({
root: {
Expand All @@ -32,6 +32,7 @@ const useStyles = () => {
text: {
...atoms.heading_3_medium,
...atoms.text_center,
color: color.text_gray_max,
maxWidth: 340,
},
})
Expand Down

0 comments on commit f4f494c

Please sign in to comment.