Compare commits

..

2 Commits

Author SHA1 Message Date
Moaz Dawalibi
372b91c1ed change google play link 2024-10-24 11:39:25 +03:00
Moaz Dawalibi
d63e3eae18 add google play link 2024-10-24 11:33:44 +03:00
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -184,7 +184,7 @@
"privacy": "© زاكر 2024.جميع الحقوق محفوظة" "privacy": "© زاكر 2024.جميع الحقوق محفوظة"
}, },
"Links": { "Links": {
"google_play_link": "https://play.google.com/store", "google_play_link": "https://play.google.com/store/apps/details?id=com.misbar.zaker",
"apple_store_link": "https://apps.apple.com", "apple_store_link": "https://apps.apple.com",
"facebook": "/", "facebook": "/",
"telegram": "/", "telegram": "/",

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>