Skip to content

Commit 524e946

Browse files
committed
refactor: rename prop
1 parent b67cdf0 commit 524e946

12 files changed

+48
-48
lines changed

frontend/components/dashboard/table/DashboardTableClConsolidations.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const setSearch = (value?: string) => {
150150
<template #body="slotProps">
151151
<DashboardTableClConsolidationsStatus
152152
:status="slotProps.data.status"
153-
is-mobile
153+
is-compact
154154
/>
155155
</template>
156156
</Column>

frontend/components/dashboard/table/DashboardTableClConsolidationsStatus.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { VDBConsolidationsClTableRow } from '~/types/api/validator_dashboard'
33
44
defineProps<{
5-
isMobile?: boolean,
5+
isCompact?: boolean,
66
rejectReason?: VDBConsolidationsClTableRow['reject_reason'],
77
status: VDBConsolidationsClTableRow['status'],
88
}>()
@@ -13,9 +13,9 @@ defineProps<{
1313
<BcBadge
1414
v-if="status === 'queued'"
1515
color="orange"
16-
:class="{ 'width-overwrite-table': !isMobile }"
16+
:class="{ 'width-overwrite-table': !isCompact }"
1717
>
18-
<template v-if="isMobile">
18+
<template v-if="isCompact">
1919
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.queued" />
2020
<BcIcon
2121
name="sync"
@@ -28,10 +28,10 @@ defineProps<{
2828
</BcBadge>
2929
<BcBadge
3030
v-if="status === 'completed'"
31-
:class="{ 'width-overwrite-table': !isMobile }"
31+
:class="{ 'width-overwrite-table': !isCompact }"
3232
color="green"
3333
>
34-
<template v-if="isMobile">
34+
<template v-if="isCompact">
3535
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.completed" />
3636
<BcIcon
3737
name="check"
@@ -44,10 +44,10 @@ defineProps<{
4444
</BcBadge>
4545
<BcBadge
4646
v-if="status === 'rejected'"
47-
:class="{ 'width-overwrite-table': !isMobile }"
47+
:class="{ 'width-overwrite-table': !isCompact }"
4848
color="red"
4949
>
50-
<template v-if="isMobile">
50+
<template v-if="isCompact">
5151
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.rejected" />
5252
<BcIcon
5353
name="xmark"
@@ -59,7 +59,7 @@ defineProps<{
5959
</template>
6060
</BcBadge>
6161
<BcTooltip
62-
v-if="status === 'rejected' && !isMobile"
62+
v-if="status === 'rejected' && !isCompact"
6363
tooltip-width="195px"
6464
tooltip-text-align="left"
6565
class="status-tooltip-trigger"

frontend/components/dashboard/table/DashboardTableClDeposits.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const {
247247
>
248248
<DashboardTableClDepositsStatus
249249
:status="slotProps.data.status"
250-
is-mobile
250+
is-compact
251251
/>
252252
</div>
253253
</template>

frontend/components/dashboard/table/DashboardTableClDepositsStatus.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { VDBConsensusDepositsTableRow } from '~/types/api/validator_dashboard'
33
44
defineProps<{
5-
isMobile?: boolean,
5+
isCompact?: boolean,
66
rejectReason?: VDBConsensusDepositsTableRow['reject_reason'],
77
status: VDBConsensusDepositsTableRow['status'],
88
}>()
@@ -13,9 +13,9 @@ defineProps<{
1313
<BcBadge
1414
v-if="status === 'queued'"
1515
color="orange"
16-
:class="{ 'width-overwrite-table': !isMobile }"
16+
:class="{ 'width-overwrite-table': !isCompact }"
1717
>
18-
<template v-if="isMobile">
18+
<template v-if="isCompact">
1919
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.queued" />
2020
<BcIcon
2121
name="sync"
@@ -28,10 +28,10 @@ defineProps<{
2828
</BcBadge>
2929
<BcBadge
3030
v-if="status === 'completed'"
31-
:class="{ 'width-overwrite-table': !isMobile }"
31+
:class="{ 'width-overwrite-table': !isCompact }"
3232
color="green"
3333
>
34-
<template v-if="isMobile">
34+
<template v-if="isCompact">
3535
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.completed" />
3636
<BcIcon
3737
name="check"
@@ -45,9 +45,9 @@ defineProps<{
4545
<BcBadge
4646
v-if="status === 'rejected'"
4747
color="red"
48-
:class="{ 'width-overwrite-table': !isMobile }"
48+
:class="{ 'width-overwrite-table': !isCompact }"
4949
>
50-
<template v-if="isMobile">
50+
<template v-if="isCompact">
5151
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.rejected" />
5252
<BcIcon
5353
name="xmark"
@@ -59,7 +59,7 @@ defineProps<{
5959
</template>
6060
</BcBadge>
6161
<BcTooltip
62-
v-if="rejectReason === 'invalid_signature' && status === 'rejected' && !isMobile"
62+
v-if="rejectReason === 'invalid_signature' && status === 'rejected' && !isCompact"
6363
tooltip-width="195px"
6464
tooltip-text-align="left"
6565
class="status-tooltip-trigger"

frontend/components/dashboard/table/DashboardTableClWithdrawals.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const getGroupName = (groupId: number) => {
219219
<DashboardTableClWithdrawalsStatus
220220
v-if="!slotProps.data.isTotalAmountRow"
221221
:status="slotProps.data.status"
222-
is-mobile
222+
is-compact
223223
/>
224224
</template>
225225
</Column>

frontend/components/dashboard/table/DashboardTableClWithdrawalsStatus.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { VDBWithdrawalsClTableRow } from '~/types/api/validator_dashboard'
33
44
defineProps<{
5-
isMobile?: boolean,
5+
isCompact?: boolean,
66
rejectReason?: VDBWithdrawalsClTableRow['reject_reason'],
77
status: VDBWithdrawalsClTableRow['status'],
88
}>()
@@ -13,9 +13,9 @@ defineProps<{
1313
<BcBadge
1414
v-if="status === 'queued'"
1515
color="orange"
16-
:class="{ 'dashboard-table-cl-withdrawals-status__badge': !isMobile }"
16+
:class="{ 'dashboard-table-cl-withdrawals-status__badge': !isCompact }"
1717
>
18-
<template v-if="isMobile">
18+
<template v-if="isCompact">
1919
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.queued" />
2020
<BcIcon
2121
name="sync"
@@ -28,10 +28,10 @@ defineProps<{
2828
</BcBadge>
2929
<BcBadge
3030
v-if="status === 'completed'"
31-
:class="{ 'dashboard-table-cl-withdrawals-status__badge': !isMobile }"
31+
:class="{ 'dashboard-table-cl-withdrawals-status__badge': !isCompact }"
3232
color="green"
3333
>
34-
<template v-if="isMobile">
34+
<template v-if="isCompact">
3535
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.completed" />
3636
<BcIcon
3737
name="check"
@@ -44,10 +44,10 @@ defineProps<{
4444
</BcBadge>
4545
<BcBadge
4646
v-if="status === 'rejected'"
47-
:class="{ 'dashboard-table-cl-withdrawals-status__badge': !isMobile }"
47+
:class="{ 'dashboard-table-cl-withdrawals-status__badge': !isCompact }"
4848
color="red"
4949
>
50-
<template v-if="isMobile">
50+
<template v-if="isCompact">
5151
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.rejected" />
5252
<BcIcon
5353
name="xmark"
@@ -59,7 +59,7 @@ defineProps<{
5959
</template>
6060
</BcBadge>
6161
<BcTooltip
62-
v-if="status === 'rejected' && !isMobile"
62+
v-if="status === 'rejected' && !isCompact"
6363
tooltip-width="266px"
6464
tooltip-text-align="left"
6565
class="dashboard-table-cl-withdrawals-status__tooltip-trigger"

frontend/components/dashboard/table/DashboardTableElConsolidations.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ const setSearch = (value?: string) => {
177177
<template #body="slotProps">
178178
<DashboardTableElConsolidationsStatus
179179
:status="slotProps.data.status"
180-
is-mobile
180+
is-compact
181181
/>
182182
</template>
183183
</Column>

frontend/components/dashboard/table/DashboardTableElConsolidationsStatus.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { VDBConsolidationsElTableRow } from '~/types/api/validator_dashboard'
33
44
defineProps<{
5-
isMobile?: boolean,
5+
isCompact?: boolean,
66
status: VDBConsolidationsElTableRow['status'],
77
}>()
88
</script>
@@ -12,9 +12,9 @@ defineProps<{
1212
<BcBadge
1313
v-if="status === 'queued'"
1414
color="orange"
15-
:class="{ 'width-overwrite-table': !isMobile }"
15+
:class="{ 'width-overwrite-table': !isCompact }"
1616
>
17-
<template v-if="isMobile">
17+
<template v-if="isCompact">
1818
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.queued" />
1919
<BcIcon
2020
name="sync"
@@ -27,10 +27,10 @@ defineProps<{
2727
</BcBadge>
2828
<BcBadge
2929
v-if="status === 'processed'"
30-
:class="{ 'width-overwrite-table': !isMobile }"
30+
:class="{ 'width-overwrite-table': !isCompact }"
3131
color="green"
3232
>
33-
<template v-if="isMobile">
33+
<template v-if="isCompact">
3434
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.completed" />
3535
<BcIcon
3636
name="check"

frontend/components/dashboard/table/DashboardTableElDeposits.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const {
248248
<template #body="slotProps">
249249
<div v-if="!slotProps.data.isTotalAmountRow">
250250
<DashboardTableElDepositsValidity
251-
is-mobile
251+
is-compact
252252
:validity="slotProps.data.validity"
253253
/>
254254
</div>

frontend/components/dashboard/table/DashboardTableElDepositsValidity.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { VDBExecutionDepositsTableRow } from '~/types/api/validator_dashboard'
33
44
defineProps<{
5-
isMobile?: boolean,
5+
isCompact?: boolean,
66
validity: VDBExecutionDepositsTableRow['validity'],
77
}>()
88
</script>
@@ -11,10 +11,10 @@ defineProps<{
1111
<div class="dashboard-table-el-deposits-validity">
1212
<BcBadge
1313
v-if="validity === 'valid'"
14-
:class="{ 'width-overwrite-table': !isMobile }"
14+
:class="{ 'width-overwrite-table': !isCompact }"
1515
color="green"
1616
>
17-
<template v-if="isMobile">
17+
<template v-if="isCompact">
1818
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.valid" />
1919
<BcIcon
2020
name="check"
@@ -28,9 +28,9 @@ defineProps<{
2828
<BcBadge
2929
v-if="validity === 'invalid_skipped'"
3030
color="green"
31-
:class="{ 'width-overwrite-table': !isMobile }"
31+
:class="{ 'width-overwrite-table': !isCompact }"
3232
>
33-
<template v-if="isMobile">
33+
<template v-if="isCompact">
3434
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.valid" />
3535
<BcIcon
3636
name="check"
@@ -42,7 +42,7 @@ defineProps<{
4242
</template>
4343
</BcBadge>
4444
<BcTooltip
45-
v-if="validity === 'invalid_skipped' && !isMobile"
45+
v-if="validity === 'invalid_skipped' && !isCompact"
4646
tooltip-width="195px"
4747
tooltip-text-align="left"
4848
class="status-tooltip-trigger"
@@ -59,9 +59,9 @@ defineProps<{
5959
<BcBadge
6060
v-if="validity === 'invalid'"
6161
color="red"
62-
:class="{ 'width-overwrite-table': !isMobile }"
62+
:class="{ 'width-overwrite-table': !isCompact }"
6363
>
64-
<template v-if="isMobile">
64+
<template v-if="isCompact">
6565
<BcScreenreaderOnly screenreader-text="dashboard.validator.table.status_text.invalid" />
6666
<BcIcon
6767
name="xmark"

0 commit comments

Comments
 (0)