Skip to content

Commit fbd2566

Browse files
committed
🔨 Use proper icon slots for button components
1 parent ab18c7c commit fbd2566

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

frontend/src/views/DashboardView/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ export default {
9898
</li>
9999
</ul>
100100
<template #cta>
101-
<primary-button class="dismiss" size="small" @click="dismiss">{{ t('label.dismiss') }}</primary-button>
101+
<primary-button class="dismiss" size="small" @click="dismiss">
102+
{{ t('label.dismiss') }}
103+
</primary-button>
102104
</template>
103105
</notice-bar>
104106

frontend/src/views/SettingsView/components/AccountSettings.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useI18n } from 'vue-i18n';
55
import { storeToRefs } from 'pinia';
66
import { callKey } from '@/keys';
77
import { DangerButton, PrimaryButton, TextInput } from '@thunderbirdops/services-ui';
8-
import { IconCopy, IconArrowRight } from '@tabler/icons-vue';
8+
import { PhCopy, PhArrowRight } from '@phosphor-icons/vue';
99
import { createUserStore } from '@/stores/user-store';
1010
import { useSettingsStore } from '@/stores/settings-store';
1111
import { BlobResponse, BooleanResponse } from '@/models';
@@ -112,7 +112,7 @@ const actuallyDownloadData = async () => {
112112
@click="copyLink"
113113
:tooltip="copyLinkTooltip"
114114
>
115-
<icon-copy id="copy-booking-page-url-button" :aria-label="t('label.copy')" size="18" />
115+
<ph-copy id="copy-booking-page-url-button" :aria-label="t('label.copy')" size="18" />
116116
</primary-button>
117117
</div>
118118
</div>
@@ -123,10 +123,10 @@ const actuallyDownloadData = async () => {
123123
variant="outline"
124124
@click="router.push({ name: 'availability' })"
125125
>
126-
<span>
127-
{{ t('label.bookingPageSettings') }}
128-
<icon-arrow-right size="18" />
129-
</span>
126+
{{ t('label.bookingPageSettings') }}
127+
<template #iconRight>
128+
<ph-arrow-right />
129+
</template>
130130
</primary-button>
131131
</div>
132132

@@ -264,4 +264,4 @@ h2 {
264264
}
265265
}
266266
}
267-
</style>
267+
</style>

frontend/src/views/admin/InviteCodePanelView.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ onMounted(async () => {
280280
@click="generateInvites"
281281
:title="t('label.generate')"
282282
>
283-
<icon-send/>
283+
<template #iconLeft>
284+
<icon-send/>
285+
</template>
284286
{{ t('label.generate') }}
285287
</primary-button>
286288
</div>

frontend/src/views/admin/SubscriberPanelView.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ onMounted(async () => {
317317
/>
318318
</label>
319319
<primary-button class="btn-send" :disabled="loading" @click="sendInvite" :title="t('label.send')">
320-
<icon-send/>
320+
<template #iconLeft>
321+
<icon-send/>
322+
</template>
321323
{{ t('label.send') }}
322324
</primary-button>
323325
</div>

frontend/src/views/admin/WaitingListPanelView.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ onMounted(async () => {
290290
@click="sendInvites"
291291
:title="t('label.send')"
292292
>
293-
<icon-send />
293+
<template #iconLeft>
294+
<icon-send />
295+
</template>
294296
{{ t('label.send') }}
295297
</primary-button>
296298
</div>

0 commit comments

Comments
 (0)