PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0.1 4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 All 258 releases
give / src / DonorDashboards / resources / js / app / components / tab-link / index.js

index.js in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at src/DonorDashboards/resources/js/app/components/tab-link/index.js

18 lines 501 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {NavLink} from 'react-router-dom';
2 import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
3 import './style.scss';
4
5 const TabLink = ({slug, label, icon}) => {
6 return (
7 <NavLink
8 to={`/${slug}`}
9 className="give-donor-dashboard-tab-link"
10 activeClassName="give-donor-dashboard-tab-link--is-active"
11 >
12 <FontAwesomeIcon icon={icon} fixedWidth={true} />
13 {label}
14 </NavLink>
15 );
16 };
17 export default TabLink;
18