PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 2.7.3
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v2.7.3
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
blockspare / admin / components / Navs.js

Navs.js in BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites 2.7.3, at admin/components/Navs.js

36 lines 661 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react'
2
3 const Navs = ({ current, activeNavHandler }) => {
4
5 return (
6 <nav className="navigation-items">
7 {navs.map((item, i) => (
8 <a key={i} className={`navigation-item ${current === i ? "active" : " "}`} onClick={() => activeNavHandler(i)}>{item.title}</a>
9 ))}
10 </nav>
11 )
12 }
13
14 export default Navs
15
16
17 const navs = [
18 {
19 title: "Welcome",
20 },
21 // {
22 // title: "Blocks",
23 // },
24 {
25 title: "Designs"
26 },
27 // {
28 // title: "Settings",
29 // },
30 // {
31 // title: "Colors"
32 // },
33 // {
34 // title: "Typography"
35 // }
36 ]