fix: remove unused prop

main
Juan Olvera 11 months ago
parent ffa2cf52a1
commit d830e37e4f

4
package-lock.json generated

@ -1,11 +1,11 @@
{
"name": "monoui",
"name": "@j0lv3r4/monoui",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "monoui",
"name": "@j0lv3r4/monoui",
"version": "0.1.0",
"license": "MIT",
"dependencies": {

@ -1,12 +1,16 @@
{
"name": "@j0lv3r4/monoui",
"version": "0.1.0",
"version": "0.1.1",
"description": "Mono UI",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"engines": {
"node": "18.17.0"
"npm": ">=9.6.7",
"node": ">=18.17.1"
},
"scripts": {
"build": "tsup",

@ -15,10 +15,10 @@ const Dropdown = React.forwardRef<T.DropdownElement, T.DropdownProps>(
className={cx([styles.content, props.className])}
ref={forwardedRef}
>
{options?.map(({ label, value, icon: Icon, href, onSelect }) => (
{options?.map(({ label, value, icon: Icon, onSelect }) => (
<$.Item
className={cx([styles.item])}
onSelect={() => onSelect?.(href ?? value)}
onSelect={() => onSelect?.(value)}
>
{Icon && <Icon className={cx(["mr-2"])} />}
{label}

Loading…
Cancel
Save