diff --git a/src/components/officehour/OHBlock.svelte b/src/components/officehour/OHBlock.svelte new file mode 100644 index 0000000..e73d0df --- /dev/null +++ b/src/components/officehour/OHBlock.svelte @@ -0,0 +1,63 @@ + + +
+ {officeHour.startTime} - {officeHour.endTime} +
+ {/if} + ++ {officeHour.member.name.split(' ')[0]} +
+ ++ {displayPosition} +
+{day}
- {#each sortedOHs.filter((OH) => OH.day == day) as OH} -- {OH.startTime} - {OH.endTime} -
+- {OH.member.name.split(' ')[0]} -
-{OH.member.position}
-+ {oh.member.name.split(' ')[0]} +
+ {#if !isShortBlock} ++ {shortenPosition(oh.member.position)} +
+ {/if} +