mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
ProductBarcode: architecture: move to strongly typed DialogID and parameters
This commit is contained in:
@@ -3,8 +3,9 @@ import type { DialogRootEmits, DialogRootProps } from 'reka-ui'
|
||||
import { Dialog, DialogContent } from '@/components/ui/dialog'
|
||||
import { useForwardPropsEmits } from 'reka-ui'
|
||||
import Command from './Command.vue'
|
||||
import type { DialogID } from '@/components/ui/dialog-provider/utils';
|
||||
|
||||
const props = defineProps<DialogRootProps & { dialogId: string }>();
|
||||
const props = defineProps<DialogRootProps & { dialogId: DialogID }>();
|
||||
const emits = defineEmits<DialogRootEmits>()
|
||||
|
||||
const forwarded = useForwardPropsEmits(props, emits)
|
||||
|
||||
Reference in New Issue
Block a user