change google play link

This commit is contained in:
Moaz Dawalibi 2024-10-24 11:39:25 +03:00
parent d63e3eae18
commit 372b91c1ed
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,7 @@ import { detectDeviceType } from '../../utils/DetectDeviceType';
import { Spin } from 'antd'; import { Spin } from 'antd';
import Layout from '../../components/layout/Layout'; import Layout from '../../components/layout/Layout';
import { ExternalRedirect } from '../../utils/ExternalRedirect'; import { ExternalRedirect } from '../../utils/ExternalRedirect';
import { Links } from '../../../data.json';
const Download = () => { const Download = () => {
const { DeviceType, setDeviceType }: any = useDetectDeviceType(); const { DeviceType, setDeviceType }: any = useDetectDeviceType();
@ -24,7 +25,7 @@ const Download = () => {
<DownloadPage /> <DownloadPage />
</Layout> </Layout>
) : ( ) : (
<ExternalRedirect url={DeviceType === 'ios' ? 'https://apps.apple.com' : 'https://play.google.com/store'} /> <ExternalRedirect url={DeviceType === 'ios' ? Links.apple_store_link : Links.google_play_link} />
) )
} }
</div> </div>