PluginProbe
Text Typing – grab attention with animated typing headlines / trunk
Text Typing – grab attention with animated typing headlines vtrunk
2.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
text-typing / dashboard / Layout / Layout.js

Layout.js in Text Typing – grab attention with animated typing headlines trunk, at dashboard/Layout/Layout.js

41 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Outlet, Link, useLocation } from "react-router-dom";
2
3 import Header from "../../../bpl-tools/Admin/Header";
4
5 const navigation = [
6 { name: "Welcome", href: "/welcome" },
7 { name: "Demos", href: "/demos" },
8 { name: "Blocks", href: "/blocks" },
9 { name: "Pricing", href: "/pricing" },
10 { name: "Feature Comparison", href: "/feature-comparison" },
11 { name: "Settings", href: "/settings" },
12 ];
13
14 const Layout = (props) => {
15 const location = useLocation();
16
17 return (
18 <div className="bPlDashboard">
19 <Header {...props}>
20 <nav className="bPlDashboardNav">
21 {navigation?.map((item, index) => (
22 <Link
23 key={index}
24 to={item.href}
25 className={`navLink ${
26 location.pathname === item.href ? "active" : ""
27 }`}>
28 {item.name}
29 </Link>
30 ))}
31 </nav>
32 </Header>
33
34 <main className="bPlDashboardMain">
35 <Outlet />
36 </main>
37 </div>
38 );
39 };
40 export default Layout;
41