Skip to content

Commit 4d88ec1

Browse files
committed
links added as const
1 parent f9c3710 commit 4d88ec1

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/screens/HomeScreen.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BACA_APP_URL, BACA_DOCS_URL } from '@baca/constants'
12
import { Box, Button, Center, Text } from '@baca/design-system'
23
import { useCallback, useScreenOptions, useTranslation } from '@baca/hooks'
34
import { Linking } from 'react-native'
@@ -25,21 +26,15 @@ export const HomeScreen = () => {
2526
justifyContent={'center'}
2627
mt={4}
2728
>
28-
<Button
29-
h={12}
30-
m={3}
31-
maxWidth={160}
32-
minWidth={160}
33-
onPress={() => openLink('https://baca-docs.vercel.app/docs/overview')}
34-
>
29+
<Button h={12} m={3} maxWidth={160} minWidth={160} onPress={() => openLink(BACA_DOCS_URL)}>
3530
{t('home_screen.read_docs')}
3631
</Button>
3732
<Button.SecondaryColor
3833
h={12}
3934
m={3}
4035
maxWidth={160}
4136
minWidth={160}
42-
onPress={() => openLink('https://binarapps.online/sign-in')}
37+
onPress={() => openLink(BACA_APP_URL)}
4338
>
4439
{t('home_screen.try_it')}
4540
</Button.SecondaryColor>

0 commit comments

Comments
 (0)