Skip to content

Commit 6ac9c48

Browse files
👌 UPDATE: Updated header component design
1 parent 459fd14 commit 6ac9c48

File tree

4 files changed

+17
-41
lines changed

4 files changed

+17
-41
lines changed

src/components/dashboard/Dashboard.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
* External dependencies
33
*/
44
import { __ } from '@wordpress/i18n';
5+
import { useNavigate } from 'react-router-dom';
6+
7+
/**
8+
* Internal dependencies.
9+
*/
10+
import Button from '../button/Button';
511

612
const Dashboard = () => {
13+
const navigate = useNavigate();
714
return (
815
<div className="dashboard mx-8">
916
<div className="card p-5">
@@ -14,6 +21,15 @@ const Dashboard = () => {
1421
{__('Edit Dashboard component at ', 'jobplace')}
1522
<code>src/components/Dashboard.jsx</code>
1623
</p>
24+
25+
<div className="mt-4">
26+
<Button
27+
type="primary"
28+
style={{ backgroundColor: '#00a0d2' }}
29+
text={__('View Jobs', 'jobplace')}
30+
onClick={() => navigate('/jobs')}
31+
/>
32+
</div>
1733
</div>
1834
</div>
1935
);

src/components/layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Header() {
2121
onClick={() => {}}
2222
className="text-gray-900 font-medium text-lg focus:outline-none focus:shadow-none"
2323
>
24-
<span className="text-primary">Job Place</span>
24+
<span className="text-primary">WP React Kit</span>
2525
</Link>
2626
</div>
2727
<div className="flex items-center mb-1">

src/components/nav/NavLinks.jsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/components/nav/style.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)