Skip to content

Commit 3de5b87

Browse files
committed
small fixes: removing useless optional chaining on conf descriptor in CurrentEventHeader + renamed some classes
1 parent 524da90 commit 3de5b87

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mobile/src/components/events/CurrentEventHeader.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
'--voxxrin-event-theme-head-title-font-familly': 'Poppins, sans-serif',
1414
'--voxxrin-event-theme-head-title-font-weight': '700'
1515
}"
16-
>{{ confDescriptor?.headingTitle }}</span>
16+
>{{ confDescriptor.headingTitle }}</span>
1717
<span v-if="confDescriptor.headingSubTitle" class="viewsHeader-subTitle">{{ confDescriptor.headingSubTitle }}</span>
1818
</div>
1919
</div>
2020

2121
<div class="viewsSubHeader">
22-
<div class="viewsSubHeader-infos">
22+
<div class="viewsSubHeader-status">
2323
<current-event-status :conf-descriptor="confDescriptor"></current-event-status>
2424
</div>
2525
</div>
2626
</ion-toolbar>
2727
<!-- TODO Connect variables custom title -->
28-
<img :src="confDescriptor?.backgroundUrl" :alt="LL.Banner_Event()"
28+
<img :src="confDescriptor.backgroundUrl" :alt="LL.Banner_Event()"
2929
:style="{ '--voxxrin-event-theme-head-background-justify': 'right'}">
3030
</ion-header>
3131
</template>
@@ -36,7 +36,6 @@ import CurrentEventStatus from "@/components/events/CurrentEventStatus.vue";
3636
import {computed, PropType, ref} from "vue";
3737
import {VoxxrinConferenceDescriptor} from "@/models/VoxxrinConferenceDescriptor";
3838
import {useTabbedPageNav} from "@/state/useTabbedPageNav";
39-
import GlobalUserActionsButton from "@/components/user/GlobalUserActionsButton.vue";
4039
import {typesafeI18n} from "@/i18n/i18n-vue";
4140
4241
const { LL } = typesafeI18n()
@@ -56,7 +55,7 @@ function backButtonClicked() {
5655
}
5756
5857
const headingBackground = computed(() => {
59-
return props.confDescriptor?.headingBackground || `var(--default-background)`
58+
return props.confDescriptor.headingBackground || `var(--default-background)`
6059
})
6160
</script>
6261

@@ -164,7 +163,7 @@ const headingBackground = computed(() => {
164163
padding: 12px 0 18px 0;
165164
font-weight: bold;
166165
167-
&-infos {
166+
&-status {
168167
flex: 0 0 auto;
169168
}
170169
}

0 commit comments

Comments
 (0)