Skip to content

Commit 917d1c9

Browse files
committed
Use button reusable comoonent in header
1 parent fd34c45 commit 917d1c9

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/components/shared/AppHeader.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import HireMeModal from '../HireMeModal';
66
import logoLight from '../../images/logo-light.svg';
77
import logoDark from '../../images/logo-dark.svg';
88
import { motion } from 'framer-motion';
9+
import Button from '../reusable/Button';
910

1011
const AppHeader = () => {
1112
const [showMenu, setShowMenu] = useState(false);
@@ -128,12 +129,13 @@ const AppHeader = () => {
128129
Contact
129130
</Link>
130131
<div className="border-t-2 pt-3 sm:pt-0 sm:border-t-0 border-primary-light dark:border-secondary-dark">
131-
<button
132+
<span
132133
onClick={showHireMeModal}
133-
className="font-general-medium sm:hidden block text-left text-md bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-sm px-4 py-2 mt-2 duration-300"
134+
className="font-general-medium sm:hidden block text-left text-md bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-sm px-4 py-2 mt-2 duration-300 w-24"
135+
aria-label="Hire Me Button"
134136
>
135-
Hire Me
136-
</button>
137+
<Button title="Hire Me" />
138+
</span>
137139
</div>
138140
</div>
139141

@@ -164,15 +166,14 @@ const AppHeader = () => {
164166

165167
{/* Header right section buttons */}
166168
<div className="hidden sm:flex justify-between items-center flex-col md:flex-row">
167-
{/* Hire me button */}
168169
<div className="hidden md:flex">
169-
<button
170+
<span
170171
onClick={showHireMeModal}
171172
className="text-md font-general-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-md px-5 py-2.5 duration-300"
172173
aria-label="Hire Me Button"
173174
>
174-
Hire Me
175-
</button>
175+
<Button title="Hire Me" />
176+
</span>
176177
</div>
177178

178179
{/* Theme switcher large screen */}

0 commit comments

Comments
 (0)