Skip to content

Commit

Permalink
Revert "Disable lock"
Browse files Browse the repository at this point in the history
This reverts commit 55fbbf2.
  • Loading branch information
EarlOld committed Jun 11, 2024
1 parent 29a1829 commit bdf2ead
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const props = defineProps<{

<template>
<div class="max-w-32" v-if="props.row">
<!-- <UButton
<UButton
v-if="!props.isLocked"
size="xl"
color="orange"
Expand All @@ -27,9 +27,9 @@ const props = defineProps<{
>
<div class="text-sm font-medium">Lock</div>
<div>Lock 100 $ATOR</div>
</UButton> -->
</UButton>
<UButton
v-if="props.row.status === 'claimable'"
v-else-if="props.row.status === 'claimable' && props.isLocked"
size="xl"
color="green"
variant="solid"
Expand All @@ -40,7 +40,7 @@ const props = defineProps<{
block
/>
<UButton
v-else-if="props.row.status === 'verified'"
v-else-if="props.row.status === 'verified' || props.isLocked"
icon="i-heroicons-check-circle-solid"
size="xl"
color="green"
Expand Down
16 changes: 8 additions & 8 deletions constants/relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const defaultColumns: {
key: 'observedBandwidth',
label: 'Observed bandwidth',
},
// {
// key: 'lockStatus',
// label: 'Lock Status',
// },
{
key: 'lockStatus',
label: 'Lock Status',
},
{
key: 'status',
label: 'Registration Status',
Expand Down Expand Up @@ -83,10 +83,10 @@ export const TABS = [
label: 'Claimable relays',
key: 'claimable',
},
// {
// label: 'Locked Relays',
// key: 'locked',
// },
{
label: 'Locked Relays',
key: 'locked',
},
];

export const VERBS = {
Expand Down
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const trancateUserBalance = (userBalance: string | null | bigint) => {
<p class="ml-1 mt-2 text-sm"><Ticker /> Account balance</p>
</UserBalance>
</div>
<!-- <div class="flex flex-col border-l-4 border-cyan-600 pl-3">
<div class="flex flex-col border-l-4 border-cyan-600 pl-3">
<h3>
<Icon name="material-symbols:lock" />
Locked
Expand All @@ -130,7 +130,7 @@ const trancateUserBalance = (userBalance: string | null | bigint) => {
<span v-if="!isConnected" class="text-4xl font-bold"> -- </span>
<Ticker />
</div>
</div> -->
</div>
</div>
</Card>
</DashboardMobileSection>
Expand Down

0 comments on commit bdf2ead

Please sign in to comment.