fix: project detail - project phase v2

This commit is contained in:
DomWane 2024-10-02 15:11:35 +02:00
parent 96687973bd
commit 3a582049ec

View file

@ -4,6 +4,8 @@ import type { Project } from '~/types'
defineProps<{ defineProps<{
project: Project project: Project
}>() }>()
const { projectPhase } = storeToRefs(useData())
</script> </script>
<template> <template>
@ -65,7 +67,7 @@ defineProps<{
:class="project.project_phase ? 'text-white' : 'text-app-text-grey'" :class="project.project_phase ? 'text-white' : 'text-app-text-grey'"
leading="20px lg:24px" leading="20px lg:24px"
> >
{{ project.project_phase || 'N/A' }} {{ projectPhase.find(p => p.id === project.project_phase)?.name || 'N/A' }}
</p> </p>
</div> </div>
</div> </div>