Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import type { AnchorHTMLAttributes } from "react";
import type { HTMLAttributes } from "react";
import { cn } from "../../../utils/cn.ts";
import { useTranslation } from "react-i18next";

export const AppGalleryButton = ({
size = "md",
...props
}: AnchorHTMLAttributes<HTMLAnchorElement> & { size?: "md" | "lg" }) => {
}: HTMLAttributes<HTMLSpanElement> & { size?: "md" | "lg" }) => {
const { t } = useTranslation();
return (
<a
<span
role="img"
aria-label={t("ariaLabelAppGallery", "Explore it on {{serviceName}}", {
serviceName: "AppGallery",
})}
{...props}
className={cn(
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border outline-focus-ring ring-inset focus-visible:outline-2 focus-visible:outline-offset-2",
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border ring-inset",
props.className
)}
>
Expand Down Expand Up @@ -123,6 +124,6 @@ export const AppGalleryButton = ({
fill="white"
/>
</svg>
</a>
</span>
);
};
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import type { AnchorHTMLAttributes } from "react";
import type { HTMLAttributes } from "react";
import { cn } from "../../../utils/cn.ts";
import { useTranslation } from "react-i18next";

export const AppStoreButton = ({
size = "md",
...props
}: AnchorHTMLAttributes<HTMLAnchorElement> & { size?: "md" | "lg" }) => {
}: HTMLAttributes<HTMLSpanElement> & { size?: "md" | "lg" }) => {
const { t } = useTranslation();
return (
<a
<span
role="img"
aria-label={t("ariaLabelAppStore", "Download on the {{serviceName}}", {
serviceName: "App Store",
})}
{...props}
className={cn(
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border outline-focus-ring ring-inset focus-visible:outline-2 focus-visible:outline-offset-2",
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border ring-inset",
props.className
)}
>
Expand Down Expand Up @@ -114,6 +115,6 @@ export const AppStoreButton = ({
fill="white"
/>
</svg>
</a>
</span>
);
};
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import type { AnchorHTMLAttributes } from "react";
import type { HTMLAttributes } from "react";
import { cn } from "../../../utils/cn.ts";
import { useTranslation } from "react-i18next";

export const GalaxyStoreButton = ({
size = "md",
...props
}: AnchorHTMLAttributes<HTMLAnchorElement> & { size?: "md" | "lg" }) => {
}: HTMLAttributes<HTMLSpanElement> & { size?: "md" | "lg" }) => {
const { t } = useTranslation();
return (
<a
<span
role="img"
aria-label={t("ariaLabelGalaxyStore", "Available on {{serviceName}}", {
serviceName: "Galaxy Store",
})}
{...props}
className={cn(
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border outline-focus-ring ring-inset focus-visible:outline-2 focus-visible:outline-offset-2",
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border ring-inset",
props.className
)}
>
Expand Down Expand Up @@ -149,6 +150,6 @@ export const GalaxyStoreButton = ({
</radialGradient>
</defs>
</svg>
</a>
</span>
);
};
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import type { AnchorHTMLAttributes } from "react";
import type { HTMLAttributes } from "react";
import { cn } from "../../../utils/cn.ts";
import { useTranslation } from "react-i18next";

export const GooglePlayButton = ({
size = "md",
...props
}: AnchorHTMLAttributes<HTMLAnchorElement> & { size?: "md" | "lg" }) => {
}: HTMLAttributes<HTMLSpanElement> & { size?: "md" | "lg" }) => {
const { t } = useTranslation();
return (
<a
<span
role="img"
aria-label={t("ariaLabelGooglePlay", "Get it on {{serviceName}}", {
serviceName: "Google Play",
})}
{...props}
className={cn(
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border outline-focus-ring ring-inset focus-visible:outline-2 focus-visible:outline-offset-2",
"rounded-[7px] bg-black ring-1 ring-app-store-badge-border ring-inset",
props.className
)}
>
Expand Down Expand Up @@ -256,6 +257,6 @@ export const GooglePlayButton = ({
</linearGradient>
</defs>
</svg>
</a>
</span>
);
};
Loading