feat(kyc): add KYC profile page, navigate instead of modal
All checks were successful
Build Docker Image / build (push) Successful in 4m17s
All checks were successful
Build Docker Image / build (push) Successful in 4m17s
This commit is contained in:
@@ -66,19 +66,6 @@
|
||||
/>
|
||||
</template>
|
||||
</CatalogPage>
|
||||
|
||||
<!-- KYC Profile Modal -->
|
||||
<dialog ref="kycModalRef" class="modal">
|
||||
<div class="modal-box max-w-2xl bg-base-100">
|
||||
<form method="dialog">
|
||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
|
||||
</form>
|
||||
<KycProfileCard :kyc-profile-uuid="kycProfileUuid" />
|
||||
</div>
|
||||
<form method="dialog" class="modal-backdrop">
|
||||
<button>close</button>
|
||||
</form>
|
||||
</dialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -360,9 +347,6 @@ const offers = ref<OfferResult[]>([])
|
||||
const offersLoading = ref(false)
|
||||
const showQuoteResults = ref(false)
|
||||
|
||||
// KYC Modal
|
||||
const kycModalRef = ref<HTMLDialogElement | null>(null)
|
||||
const kycProfileUuid = ref<string | null>(null)
|
||||
|
||||
// Watch for search trigger from topnav
|
||||
const searchTrigger = useState<number>('catalog-search-trigger', () => 0)
|
||||
@@ -510,11 +494,10 @@ const onInfoSelectProduct = (uuid: string | null) => {
|
||||
setInfoProduct(uuid)
|
||||
}
|
||||
|
||||
// Handle KYC profile open - show modal with full profile
|
||||
// Handle KYC profile open - navigate to KYC page
|
||||
const onOpenKyc = (uuid: string | undefined) => {
|
||||
if (!uuid) return
|
||||
kycProfileUuid.value = uuid
|
||||
kycModalRef.value?.showModal()
|
||||
navigateTo(localePath(`/kyc/${uuid}`))
|
||||
}
|
||||
|
||||
// Search for offers
|
||||
|
||||
25
app/pages/kyc/[uuid].vue
Normal file
25
app/pages/kyc/[uuid].vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="min-h-screen bg-base-200">
|
||||
<div class="container mx-auto px-4 py-8 max-w-4xl">
|
||||
<!-- Back button -->
|
||||
<NuxtLink :to="localePath('/catalog')" class="btn btn-ghost btn-sm mb-4">
|
||||
<Icon name="lucide:arrow-left" size="16" />
|
||||
{{ $t('common.back') }}
|
||||
</NuxtLink>
|
||||
|
||||
<!-- KYC Profile Card -->
|
||||
<KycProfileCard :kyc-profile-uuid="uuid" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
definePageMeta({
|
||||
layout: 'topnav'
|
||||
})
|
||||
|
||||
const route = useRoute()
|
||||
const localePath = useLocalePath()
|
||||
|
||||
const uuid = computed(() => route.params.uuid as string)
|
||||
</script>
|
||||
Reference in New Issue
Block a user