mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	chore(react/ribbon): change note type
This commit is contained in:
		| @@ -76,14 +76,21 @@ interface FormListItemOpts { | ||||
|     active?: boolean; | ||||
|     badges?: FormListBadge[]; | ||||
|     disabled?: boolean; | ||||
|     checked?: boolean; | ||||
|     onClick?: () => void; | ||||
| } | ||||
|  | ||||
| export function FormListItem({ children, icon, value, title, active, badges, disabled }: FormListItemOpts) { | ||||
| export function FormListItem({ children, icon, value, title, active, badges, disabled, checked, onClick }: FormListItemOpts) { | ||||
|     if (checked) { | ||||
|         icon = "bx bx-check"; | ||||
|     } | ||||
|  | ||||
|     return ( | ||||
|         <a | ||||
|             class={`dropdown-item ${active ? "active" : ""} ${disabled ? "disabled" : ""}`} | ||||
|             data-value={value} title={title} | ||||
|             tabIndex={0} | ||||
|             onClick={onClick} | ||||
|         > | ||||
|             <Icon icon={icon} />  | ||||
|             {children} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user