File tree Expand file tree Collapse file tree 4 files changed +17
-41
lines changed Expand file tree Collapse file tree 4 files changed +17
-41
lines changed Original file line number Diff line number Diff line change 22 * External dependencies
33 */
44import { __ } from '@wordpress/i18n' ;
5+ import { useNavigate } from 'react-router-dom' ;
6+
7+ /**
8+ * Internal dependencies.
9+ */
10+ import Button from '../button/Button' ;
511
612const 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 ) ;
Original file line number Diff line number Diff 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" >
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments