Skip to content

Commit

Permalink
fix: gas item selected style error (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
weatherstar authored Jun 25, 2023
1 parent 6585750 commit 1d53595
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions packages/app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PODS:
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- EXApplication (5.1.1):
- EXApplication (5.2.0):
- ExpoModulesCore
- EXAV (13.3.0):
- ExpoModulesCore
Expand Down Expand Up @@ -1050,7 +1050,7 @@ SPEC CHECKSUMS:
boost: 57d2868c099736d80fcd648bf211b4431e51a558
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
EXApplication: d8f53a7eee90a870a75656280e8d4b85726ea903
EXApplication: 45c662ace096520d412e8f2c956482c8ffac1436
EXAV: c661e742e2ee1986f5a6a030b48d9d3a3507d2f0
EXBarCodeScanner: 28ad66f3f57c8ae00f988956835ab472688643ca
EXConstants: 29269f841ed8786d483b753021953264ac04818f
Expand Down Expand Up @@ -1185,4 +1185,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 378641444e16b53374eb08f9204e4c8f404b5843

COCOAPODS: 1.12.1
COCOAPODS: 1.11.3
10 changes: 3 additions & 7 deletions packages/components/src/RadioBox/RadioBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,21 @@ const RadioBox: FC<RadioBoxProps> = ({
const [isFocused, setFocused] = useState(false);

let brColor = 'border-default';
let bgColor = 'transparent';
if (isChecked) {
if (isDisabled) {
brColor = 'action-primary-activate-disabled';
} else {
brColor = 'action-primary-default';
}
bgColor = 'surface-selected';
} else if (isDisabled) {
bgColor = 'surface-disabled';
brColor = 'border-disabled';
} else {
brColor = 'border-default';
}

let bgColor = 'action-secondary-default';
if (isDisabled) {
bgColor = 'action-secondary-disabled';
} else {
bgColor = 'action-secondary-default';
}

return (
<Pressable
onFocus={() => setFocused(true)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const presetItemStyle = {
paddingBottom: '4px',
alignItems: 'center',
height: '64px',
bg: 'transparent',
};

const customItemStyle = {
Expand Down

0 comments on commit 1d53595

Please sign in to comment.