diff --git a/frontend/src/App.vue b/frontend/src/App.vue index e0f7658..59969ac 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,6 +1,6 @@ @@ -28,7 +36,9 @@ const props = defineProps({ diff --git a/frontend/src/components/ui/dropdown-menu/DropdownMenuItem.vue b/frontend/src/components/ui/dropdown-menu/DropdownMenuItem.vue index 9563fff..635ef72 100644 --- a/frontend/src/components/ui/dropdown-menu/DropdownMenuItem.vue +++ b/frontend/src/components/ui/dropdown-menu/DropdownMenuItem.vue @@ -6,7 +6,12 @@ import { cn } from '@/lib/utils'; const props = defineProps({ disabled: Boolean, danger: Boolean, - class: String + class: String, + as: { + type: [String, Object], + default: undefined + }, + href: String }); const classes = computed(() => cn( @@ -17,10 +22,12 @@ const classes = computed(() => cn( props.danger && 'hover:border-red-400/30 hover:text-red-400', props.class )); + +const elementAs = computed(() => props.as || (props.href ? 'a' : undefined));