Skip to content

Commit 80b8942

Browse files
committed
Update Status
1 parent 832bed7 commit 80b8942

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/Components/Footerbar/index.jsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ const Footerbar = () => {
1616
route: "/refuse-email-collection",
1717
},
1818
{ title: "블로그", route: "/blog" },
19+
{
20+
title: "서비스 상태",
21+
route: "https://status.zzunipark.com",
22+
external: true,
23+
},
1924
]
2025
: [
2126
{ title: "About Us", route: "/about-us" },
@@ -24,8 +29,21 @@ const Footerbar = () => {
2429
route: "/refuse-email-collection",
2530
},
2631
{ title: "Blog", route: "/blog" },
32+
{
33+
title: "Service Status",
34+
route: "https://status.zzunipark.com",
35+
external: true,
36+
},
2737
];
2838

39+
const handleNavigation = (item) => {
40+
if (item.external) {
41+
window.open(item.route, "_blank");
42+
} else {
43+
navigate(item.route);
44+
}
45+
};
46+
2947
return (
3048
<s.FooterContainer>
3149
<s.FooterTop>
@@ -35,7 +53,7 @@ const Footerbar = () => {
3553
{DisclaimerItems.map((item, index) => (
3654
<s.NavigatorText
3755
key={index}
38-
onClick={() => navigate(item.route)}
56+
onClick={() => handleNavigation(item)}
3957
>
4058
{item.title}
4159
</s.NavigatorText>

0 commit comments

Comments
 (0)