1
0

feat: remove PropTypes helper from FilePreview

This commit is contained in:
Dominik Pschenitschni 2024-07-06 13:26:44 +02:00 committed by konrad
parent 78811d916a
commit 0bc1832050

View File

@ -19,17 +19,14 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import {type PropType, ref, shallowReactive, watchEffect} from 'vue' import {ref, shallowReactive, watchEffect} from 'vue'
import AttachmentService from '@/services/attachment' import AttachmentService from '@/services/attachment'
import type {IAttachment} from '@/modelTypes/IAttachment' import type {IAttachment} from '@/modelTypes/IAttachment'
import {SUPPORTED_IMAGE_SUFFIX} from '@/models/attachment' import {SUPPORTED_IMAGE_SUFFIX} from '@/models/attachment'
const props = defineProps({ const props = defineProps<{
modelValue: { modelValue?: IAttachment
type: Object as PropType<IAttachment>, }>()
default: undefined,
},
})
const attachmentService = shallowReactive(new AttachmentService()) const attachmentService = shallowReactive(new AttachmentService())
const blobUrl = ref<string | undefined>(undefined) const blobUrl = ref<string | undefined>(undefined)