chore: Refactor contact page button with button component (#2234)

* chore: Refactor contact page buttons with woot-button component


Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
Sivin Varghese
2021-05-13 12:05:24 +05:30
committed by GitHub
parent 3639fb1d71
commit 368bab2553
2 changed files with 32 additions and 42 deletions

View File

@@ -17,18 +17,22 @@
@keyup.enter="onSearchSubmit"
@input="onInputSearch"
/>
<woot-submit-button
:button-text="$t('CONTACTS_PAGE.SEARCH_BUTTON')"
:loading="false"
:button-class="searchButtonClass"
<woot-button
:is-loading="false"
:class-names="searchButtonClass"
@click="onSearchSubmit"
/>
>
{{ $t('CONTACTS_PAGE.SEARCH_BUTTON') }}
</woot-button>
</div>
<button class="button success icon" @click="onToggleCreate">
<i class="icon ion-android-add-circle" />
<woot-button
color-scheme="success"
icon="ion-android-add-circle"
@click="onToggleCreate"
>
{{ $t('CREATE_CONTACT.BUTTON_LABEL') }}
</button>
</woot-button>
</div>
</div>
</header>