Skip to content

Commit b040b1e

Browse files
committed
wip
1 parent f00a48b commit b040b1e

File tree

6 files changed

+46
-48
lines changed

6 files changed

+46
-48
lines changed

index.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ declare module '*.svg' {
44
export const ReactComponent: any;
55
export default content;
66
}
7-
8-
declare module 'app-store-scraper';

src/app/sitemap.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { MetadataRoute } from 'next';
2-
import { SITE_URL } from '@/constants';
3-
import { SUPPORTED_LOCALES } from '@/constants';
2+
import { SITE_URL, SUPPORTED_LOCALES } from '@/constants';
43
import { academyModules } from '@/lib/academy-modules';
54

65
export interface SitemapUrl {

src/components/pages/main-page/main-page.tsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Fragment } from 'react';
22
import clsx from 'clsx';
3-
import dynamic from 'next/dynamic';
3+
// import dynamic from 'next/dynamic';
44
import { useTranslations } from 'next-intl';
55
import { Container } from '@/components/ui/container';
66
import { Marquee } from '@/components/ui/marquee';
@@ -16,13 +16,13 @@ import { LearnAndGrowBlock } from './learn-and-grow-block';
1616
import { NewsBlock } from './news-block';
1717
import { WhyBlock } from './why-block';
1818

19-
const WalletBlock = dynamic(
20-
async () => {
21-
const { WalletBlock } = await import('./wallet-block');
22-
return { default: WalletBlock };
23-
},
24-
// { ssr: false },
25-
);
19+
// const WalletBlock = dynamic(
20+
// async () => {
21+
// const { WalletBlock } = await import('./wallet-block');
22+
// return { default: WalletBlock };
23+
// },
24+
// // { ssr: false },
25+
// );
2626

2727
export function MainPage({
2828
news,
@@ -53,7 +53,7 @@ export function MainPage({
5353
shariahMembers={shariahMembers}
5454
advisoryMembers={advisoryMembers}
5555
/>
56-
<WalletBlock storeRatings={storeRatings} />
56+
{/* <WalletBlock storeRatings={storeRatings} /> */}
5757
<LearnAndGrowBlock />
5858
<JoinCommunityBlock />
5959
</Fragment>

src/components/pages/wallet-page.tsx

+34-33
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import { Fragment, useMemo } from 'react';
33
import Image from 'next/image';
44
import Link from 'next/link';
55
import { useTranslations } from 'next-intl';
6-
import { usePostHog } from 'posthog-js/react';
6+
// import { usePostHog } from 'posthog-js/react';
77
import bgImgData from '@/assets/images/wallet-bg.webp';
88
import phoneImgData from '@/assets/images/wallet-iphone-screenshot.webp';
99
import { Container } from '@/components/ui/container';
1010
import { RatingBadge } from '@/components/ui/rating-badge';
1111
import { Text } from '@/components/ui/text';
12-
import {
13-
WalletDownloadButton,
14-
WalletDownloadWithQrButton,
15-
} from '@/components/ui/wallet-download-button';
16-
import { WALLET_LINK_APPLE, WALLET_LINK_GOOGLE } from '@/constants';
17-
import { getDynamicLink } from '@/utils/get-dynamic-link';
12+
// import {
13+
// WalletDownloadButton,
14+
// WalletDownloadWithQrButton,
15+
// } from '@/components/ui/wallet-download-button';
16+
// import { WALLET_LINK_APPLE, WALLET_LINK_GOOGLE } from '@/constants';
17+
// import { getDynamicLink } from '@/utils/get-dynamic-link';
1818

1919
export function WalletPage({
2020
storeRatings,
@@ -25,31 +25,31 @@ export function WalletPage({
2525
};
2626
}) {
2727
const t = useTranslations('wallet-page');
28-
const posthog = usePostHog();
28+
// const posthog = usePostHog();
2929

30-
const { appStoreLink, playMarketLink } = useMemo(() => {
31-
const distinctId = posthog.get_distinct_id();
30+
// const { appStoreLink, playMarketLink } = useMemo(() => {
31+
// const distinctId = posthog.get_distinct_id();
3232

33-
if (!distinctId) {
34-
return {
35-
appStoreLink: WALLET_LINK_APPLE,
36-
playMarketLink: WALLET_LINK_GOOGLE,
37-
};
38-
}
33+
// if (!distinctId) {
34+
// return {
35+
// appStoreLink: WALLET_LINK_APPLE,
36+
// playMarketLink: WALLET_LINK_GOOGLE,
37+
// };
38+
// }
3939

40-
return {
41-
appStoreLink: getDynamicLink(
42-
'https://haqq.network/wallet',
43-
distinctId,
44-
WALLET_LINK_APPLE,
45-
),
46-
playMarketLink: getDynamicLink(
47-
'https://haqq.network/wallet',
48-
distinctId,
49-
WALLET_LINK_GOOGLE,
50-
),
51-
};
52-
}, [posthog]);
40+
// return {
41+
// appStoreLink: getDynamicLink(
42+
// 'https://haqq.network/wallet',
43+
// distinctId,
44+
// WALLET_LINK_APPLE,
45+
// ),
46+
// playMarketLink: getDynamicLink(
47+
// 'https://haqq.network/wallet',
48+
// distinctId,
49+
// WALLET_LINK_GOOGLE,
50+
// ),
51+
// };
52+
// }, [posthog]);
5353

5454
const content = (
5555
<Fragment>
@@ -79,7 +79,8 @@ export function WalletPage({
7979
<RatingBadge rating={storeRatings.googlePlay} />
8080
</div>
8181
</div>
82-
<div className="hidden lg:mt-[24px] lg:flex lg:flex-row lg:flex-wrap lg:gap-[16px]">
82+
83+
{/* <div className="hidden lg:mt-[24px] lg:flex lg:flex-row lg:flex-wrap lg:gap-[16px]">
8384
<div className="w-fit">
8485
<Link
8586
href={appStoreLink}
@@ -119,9 +120,9 @@ export function WalletPage({
119120
<WalletDownloadButton type="apk" />
120121
</Link>
121122
</div>
122-
</div>
123+
</div> */}
123124

124-
<div className="mt-[28px] flex flex-col gap-y-[20px] lg:hidden">
125+
{/* <div className="mt-[28px] flex flex-col gap-y-[20px] lg:hidden">
125126
<Link
126127
href={appStoreLink}
127128
target="_blank"
@@ -157,7 +158,7 @@ export function WalletPage({
157158
<WalletDownloadButton type="apk" />
158159
</Link>
159160
</div>
160-
</div>
161+
</div> */}
161162

162163
<div className="mt-[24px] text-[13px] leading-[20px] md:text-[16px] lg:text-[#F5F5F580]">
163164
You can find more supported wallets{' '}

src/components/ui/footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export function Footer({
248248
</div>
249249
<div className="py-[16px] md:py-[24px] lg:py-[36px]">
250250
<Container>
251-
<div className="flex w-full items-center justify-between text-[12px] font-[300] leading-[18px] md:text-[13px] md:leading-[20px] lg:text-[14px] lg:leading-[20px]">
251+
<div className="flex w-full flex-col items-center justify-center text-[12px] font-[300] leading-[18px] md:flex-row md:justify-between md:text-[13px] md:leading-[20px] lg:text-[14px] lg:leading-[20px]">
252252
<div>
253253
© {new Date().getFullYear()} Islamic Coin. All rights reserved
254254
</div>

src/components/ui/member-card.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function MemberCard({
4242
/>
4343
</div>
4444
<div className="flex h-full flex-col">
45-
<div className="min-h-[48px] text-start text-[13px] leading-[20px] md:text-[14px] lg:text-base">
45+
<div className="min-h-[48px] text-start text-[13px] leading-[18px] md:text-[14px] lg:text-base">
4646
{title}
4747
</div>
4848
<div className="flex h-full flex-col justify-between">

0 commit comments

Comments
 (0)