Skip to content

Commit

Permalink
Show wallet service by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Perronef5 committed Oct 8, 2024
1 parent c3224b1 commit 7afbbf2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/components/BalanceText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const BalanceText = ({
const integral = useMemo(() => Math.floor(amount || 0), [amount])

const fractional = useMemo(() => {
if (amount === undefined) return '-'
if (amount === undefined) return ''
const decimal = amount - integral
const fraction = decimal.toString().split('.')[1]
// Fraction with max length of decimals
Expand All @@ -31,10 +31,12 @@ const BalanceText = ({
paddingTop="2"
adjustsFontSizeToFit
variant="displayLgBold"
color="primaryText"
color={
amount === undefined ? 'text.placeholder-subtle' : 'primaryText'
}
{...rest}
>
{`$${integral.toLocaleString(locale)}`}
{amount === undefined ? '-' : `$${integral.toLocaleString(locale)}`}
</Text>
<Text
adjustsFontSizeToFit
Expand Down
4 changes: 2 additions & 2 deletions src/services/ServiceSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ServiceSheet = ({ children }: ServiceSheetProps) => {
const [isExpanded, setIsExpanded] = useState(false)
const bottomSheetRef = useRef<BottomSheet>(null)
const serviceNav = useNavigation<ServiceSheetNavigationProp>()
const [currentService, setCurrentService] = useState('')
const [currentService, setCurrentService] = useState('wallet')
const { top } = useSafeAreaInsets()

const onRoute = useCallback((value: string) => {
Expand Down Expand Up @@ -90,7 +90,7 @@ const ServiceSheet = ({ children }: ServiceSheetProps) => {
walletsSelected={currentService === 'wallets'}
onClose={onCloseSheet}
/>
<HeliumBottomSheet ref={bottomSheetRef} onClose={onCloseSheet}>
<HeliumBottomSheet ref={bottomSheetRef} onClose={onCloseSheet} index={0}>
<ThemeProvider theme={lightTheme}>
<Box
flex={1}
Expand Down

0 comments on commit 7afbbf2

Please sign in to comment.