Skip to content

Commit 5b9d971

Browse files
committed
change contact to github link
1 parent 453e145 commit 5b9d971

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

examples/demo/src/app/components/MobileMenu.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { useUI } from '@react-zero-ui/core';
33
import clsx from 'clsx';
44
import Link from 'next/link';
5+
import { Icon } from './Icon';
56

67
export const MobileMenu: React.FC<{ navItems: { name: string; href: string }[] }> = ({ navItems }) => {
78
const [, setMenuOpen] = useUI<'closed' | 'open'>('mobile-menu', 'closed');
@@ -22,10 +23,17 @@ export const MobileMenu: React.FC<{ navItems: { name: string; href: string }[] }
2223
))}
2324
<li className={clsx('mobile-menu-item transform pt-3 transition-all duration-300 ease-in-out')}>
2425
<Link
25-
href="/#contact"
26+
href="https://github.com/react-zero-ui"
27+
target="_blank"
2628
onClick={() => setMenuOpen((prev) => (prev === 'closed' ? 'open' : 'closed'))}
27-
className="bubble-hover block rounded-full border border-gray-200 bg-white px-3 py-2 text-center font-medium shadow-lg duration-300 hover:border-white">
28-
Contact
29+
className="bubble-hover flex rounded-full border border-gray-200 bg-white px-3 py-2 text-center font-medium shadow-lg duration-300 hover:border-white items-center justify-center gap-2 ">
30+
<Icon
31+
name="github"
32+
height={24}
33+
width={24}
34+
className="text-black"
35+
/>
36+
GitHub
2937
</Link>
3038
</li>
3139
</ul>

0 commit comments

Comments
 (0)