Skip to content

Commit

Permalink
fix: app store 국가 코드 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
danah-kim committed Feb 19, 2025
1 parent 7199b70 commit e4d80d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pages/_components/Intro/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Box from "@components/atoms/Box";
import Button from "@components/atoms/Button";
import Typography from "@components/atoms/Typography";

import i18n from "@utils/i18n";
import { matchSupportLanguage } from "@utils/i18n";

import { ImageBox, StyledIntro, SubTitle, Title, TitleBox, ImageRatioBox } from "./Intro.styles";

Expand All @@ -19,7 +19,7 @@ const PlandyMockupImage = {
};

function Intro() {
const { t } = useTranslation();
const { i18n, t } = useTranslation();

return (
<StyledIntro>
Expand All @@ -30,7 +30,11 @@ function Intro() {
<Button
variant="text"
startIcon={<img src={AppStoreIcon} width={24} height={24} alt="App Store" />}
onClick={() => window.open("https://apps.apple.com/us/app/id6736831438")}
onClick={() =>
window.open(
`https://apps.apple.com/${matchSupportLanguage(i18n.resolvedLanguage).countries[0]}/app/id6736831438`
)
}
>
<Typography ml={1}>Download on</Typography>
<Typography variant="title" fontWeight={500}>
Expand Down

0 comments on commit e4d80d9

Please sign in to comment.