mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
chore(react/dialogs): add back badges for choose note type
This commit is contained in:
8
apps/client/src/widgets/react/Badge.tsx
Normal file
8
apps/client/src/widgets/react/Badge.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
interface BadgeProps {
|
||||
className?: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export default function Badge({ title, className }: BadgeProps) {
|
||||
return <span class={`badge ${className ?? ""}`}>{title}</span>
|
||||
}
|
||||
@@ -22,16 +22,16 @@ export default function FormList({ children, onSelect }: FormListOpts) {
|
||||
}
|
||||
|
||||
interface FormListItemOpts {
|
||||
text: string;
|
||||
children: ComponentChildren;
|
||||
icon?: string;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export function FormListItem({ text, icon, value }: FormListItemOpts) {
|
||||
export function FormListItem({ children, icon, value }: FormListItemOpts) {
|
||||
return (
|
||||
<a class="dropdown-item" data-value={value}>
|
||||
<Icon icon={icon} />
|
||||
{text}
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user