Compare commits

..

No commits in common. "372b91c1ed58f3e4ed4e3a130dbb58c38213f036" and "01d3a3aa79153c70f69052370f1b4e928ce12f01" have entirely different histories.

3 changed files with 3 additions and 4 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/apps/details?id=com.misbar.zaker", "google_play_link": "https://play.google.com/store",
"apple_store_link": "https://apps.apple.com", "apple_store_link": "https://apps.apple.com",
"facebook": "/", "facebook": "/",
"telegram": "/", "telegram": "/",

View File

@ -5,7 +5,6 @@ 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();
@ -25,7 +24,7 @@ const Download = () => {
<DownloadPage /> <DownloadPage />
</Layout> </Layout>
) : ( ) : (
<ExternalRedirect url={DeviceType === 'ios' ? Links.apple_store_link : Links.google_play_link} /> <ExternalRedirect url={DeviceType === 'ios' ? 'https://apps.apple.com' : 'https://play.google.com/store'} />
) )
} }
</div> </div>