|
|
@@ -6,7 +6,8 @@ import btnGooglePlay from '@/assets/images/home/btn-google-play.svg';
|
|
|
import btnMacos from '@/assets/images/home/btn-macos.svg';
|
|
|
import btnWindows from '@/assets/images/home/btn-windows.svg';
|
|
|
import devicesMockup from '@/assets/images/home/devices-mockup.png';
|
|
|
-import { useAppUrls, type AppUrls } from '@/hooks/useAppUrls';
|
|
|
+import { /*useAppUrls,*/ type AppUrls } from '@/hooks/useAppUrls';
|
|
|
+import { useComingSoonDialog } from '@/hooks/useComingSoonDialog';
|
|
|
|
|
|
import Wrapper from './Wrapper';
|
|
|
|
|
|
@@ -26,7 +27,8 @@ const STORE_BUTTONS: PlatformButton[] = [
|
|
|
|
|
|
export function ChoosePlatform() {
|
|
|
const { t } = useTranslation();
|
|
|
- const urls = useAppUrls();
|
|
|
+ const openComingSoonDialog = useComingSoonDialog();
|
|
|
+ // const urls = useAppUrls();
|
|
|
|
|
|
return (
|
|
|
<section className="w-full py-8 sm:py-10 lg:py-16">
|
|
|
@@ -42,7 +44,21 @@ export function ChoosePlatform() {
|
|
|
</div>
|
|
|
|
|
|
<div className="grid grid-cols-2 gap-6 px-4 w-full sm:flex sm:flex-wrap sm:items-center sm:justify-center">
|
|
|
- {STORE_BUTTONS.map(({ image, alt, urlKey }) => {
|
|
|
+ {STORE_BUTTONS.map(({ image, alt }) => (
|
|
|
+ <button
|
|
|
+ key={alt}
|
|
|
+ type="button"
|
|
|
+ onClick={() => openComingSoonDialog()}
|
|
|
+ className="h-[50px] p-0 bg-transparent border-none cursor-pointer outline-none focus:outline-none [-webkit-tap-highlight-color:transparent]"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src={image}
|
|
|
+ alt={alt}
|
|
|
+ className="h-full w-full object-contain sm:w-auto"
|
|
|
+ />
|
|
|
+ </button>
|
|
|
+ ))}
|
|
|
+ {/* {STORE_BUTTONS.map(({ image, alt, urlKey }) => {
|
|
|
const url = urls[urlKey];
|
|
|
if (!url) return null;
|
|
|
return (
|
|
|
@@ -60,7 +76,7 @@ export function ChoosePlatform() {
|
|
|
/>
|
|
|
</a>
|
|
|
);
|
|
|
- })}
|
|
|
+ })} */}
|
|
|
</div>
|
|
|
</div>
|
|
|
|