PHP Classes

File: src/components/dashboard/Dashboard.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/dashboard/Dashboard.tsx   Download  
File: src/components/dashboard/Dashboard.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 1,050 bytes
 

Contents

Class file image Download
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { useNavigate } from 'react-router-dom'; /** * Internal dependencies. */ import Button from '../button/Button'; const Dashboard = () => { const navigate = useNavigate(); return ( <div className="dashboard mx-8"> <div className="card p-5"> <h3 className="font-medium text-lg"> {__('Dashboard', 'jobplace')} </h3> <p> {__('Edit Dashboard component at ', 'jobplace')} <code>src/components/Dashboard.jsx</code> </p> <div className="mt-4"> <Button type="primary" style={{ backgroundColor: '#00a0d2' }} text={__('View Jobs', 'jobplace')} onClick={() => navigate('/jobs')} /> </div> </div> </div> ); }; export default Dashboard;