@fc-components/menu
Advanced tools
+1
-1
| { | ||
| "name": "@fc-components/menu", | ||
| "version": "1.2.5", | ||
| "version": "1.2.6", | ||
| "description": "The Menu component used for flashcat.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.tsx", |
@@ -35,3 +35,10 @@ import React from 'react'; | ||
| .map((item) => ( | ||
| <Menu.Item key={item.key}>{item.label}</Menu.Item> | ||
| <> | ||
| {item?.showDivider && ( | ||
| <div className='float-fc-menu-divider float-fc-menu-sub'> | ||
| <div className='fc-menu-sub-curve'></div> | ||
| </div> | ||
| )} | ||
| <Menu.Item key={item.key}>{item.label}</Menu.Item> | ||
| </> | ||
| ))} | ||
@@ -38,0 +45,0 @@ </Menu> |
@@ -6,2 +6,3 @@ export interface MenuItemProps { | ||
| activeIcon?: React.ReactNode; | ||
| showDivider?: boolean; | ||
| } | ||
@@ -8,0 +9,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
51407
0.5%999
0.81%1
Infinity%