-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f69c341
commit 26b8494
Showing
5 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/screens/settings-screen/settings/advanced-api-access.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Linking } from "react-native" | ||
|
||
import { GaloyIcon } from "@app/components/atomic/galoy-icon" | ||
import { useI18nContext } from "@app/i18n/i18n-react" | ||
|
||
import { SettingsRow } from "../row" | ||
|
||
const DASHBOARD_LINK = "https://dashboard.blink.sv" | ||
|
||
export const ApiAccessSetting: React.FC = () => { | ||
const { LL } = useI18nContext() | ||
|
||
return ( | ||
<SettingsRow | ||
title={LL.SettingsScreen.apiAcess()} | ||
subtitle={DASHBOARD_LINK} | ||
subtitleShorter={true} | ||
leftIcon="code" | ||
rightIcon={<GaloyIcon name="link" size={24} />} | ||
action={() => { | ||
Linking.openURL(DASHBOARD_LINK) | ||
}} | ||
/> | ||
) | ||
} |