feat: reset select in community page (#339)

* Feat: Add Reset for comminity dropdown

* - add translation

* refactor

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
Adeyemi Adetunji
2024-05-29 00:12:31 +01:00
committed by GitHub
co-authored by Rotimi Best
parent a1b34fc224
commit b4465afb64
9 changed files with 20 additions and 9 deletions
@@ -100,7 +100,10 @@
class="w-[25%] h-full"
size="xl"
label={$t('community.ask.select_course')}
items={allCourses.map((course) => ({ id: course.id, text: course.title }))}
items={[
{ id: '', text: $t('community.all') },
...allCourses.map((course) => ({ id: course.id, text: course.title }))
]}
bind:selectedId
/>
</div>