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", "version": "0.1.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "monoui", "name": "@j0lv3r4/monoui",
"version": "0.1.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

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

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

Loading…
Cancel
Save