Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions src/page/home/sidebar/AppLinks.js

This file was deleted.

41 changes: 41 additions & 0 deletions src/page/home/sidebar/AppLinks/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from 'react';
import {Platform} from 'react-native';

import styles from '../../../../style/StyleSheet';
import openURLInNewTab from '../../../../lib/openURLInNewTab';
import Text from '../../../../components/Text';

const AppLinks = () => (
<>
{Platform.OS === 'web' && (
<Text
style={[styles.sidebarFooterLink, styles.mr2]}
onPress={() => openURLInNewTab('https://chat.expensify.com/Chat.dmg')}
>
Desktop
</Text>
)}
{Platform.OS !== 'web' && (
<Text
style={[styles.sidebarFooterLink, styles.mr2]}
onPress={() => openURLInNewTab('https://chat.expensify.com')}
>
Web
</Text>
)}
<Text
style={[styles.sidebarFooterLink, styles.mr2]}
onPress={() => openURLInNewTab('https://testflight.apple.com/join/ucuXr4g5')}
>
iOS
</Text>
<Text
style={[styles.sidebarFooterLink, styles.mr2]}
onPress={() => openURLInNewTab('https://play.google.com/apps/internaltest/4700657970395613233')}
>
Android
</Text>
</>
);

export default AppLinks;
17 changes: 17 additions & 0 deletions src/page/home/sidebar/AppLinks/index.native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import styles from '../../../../style/StyleSheet';
import openURLInNewTab from '../../../../lib/openURLInNewTab';
import Text from '../../../../components/Text';

const AppLinks = () => (
<>
<Text
style={[styles.sidebarFooterLink, styles.mr2]}
onPress={() => openURLInNewTab('https://chat.expensify.com/')}
>
View on web
</Text>
</>
);

export default AppLinks;