pull/5788/head
parent
0e44601671
commit
d51b488329
@ -1,42 +0,0 @@ |
||||
<template> |
||||
<div |
||||
class="teacher-bar" |
||||
:class="{ 'teacher-bar--simple': isSimpleLayout }" |
||||
> |
||||
<div |
||||
v-for="user in teachers" |
||||
:key="user.id" |
||||
class="teacher-bar__item" |
||||
> |
||||
<BaseUserAvatar |
||||
:image-url="`${user.illustrationUrl}?w=80&h=80&fit=crop`" |
||||
:alt="t('Teacher profile picture')" |
||||
class="mr-2" |
||||
/> |
||||
<div |
||||
v-if="isSimpleLayout" |
||||
class="teacher-bar__item-caption" |
||||
> |
||||
<span v-text="user.fullName" /> |
||||
<span v-t="'Coach'" /> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</template> |
||||
|
||||
<script setup> |
||||
import BaseUserAvatar from "./basecomponents/BaseUserAvatar.vue" |
||||
import { useI18n } from "vue-i18n" |
||||
|
||||
const { t } = useI18n() |
||||
|
||||
// eslint-disable-next-line no-undef |
||||
const props = defineProps({ |
||||
teachers: { |
||||
required: true, |
||||
type: Array, |
||||
}, |
||||
}) |
||||
|
||||
const isSimpleLayout = props.teachers.length < 3 |
||||
</script> |
Loading…
Reference in new issue