Skip to content

Commit

Permalink
chore: Update Inscribe authorize ui
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Feb 6, 2024
1 parent 0f9c7af commit c4ba99d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/authorize-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default {
Inscribe: {
name: 'Inscribe',
title: 'Inscribe',
description: 'Inscribe',
description: 'Inscrible Your Data On The Chain.',
process: Inscribe.process,
estimate: doNothing,
closeAfterProcess: true,
Expand Down
2 changes: 2 additions & 0 deletions src/pages/authorize/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import SignBTCPsbt from './SignBtcPsbt.vue'
import SignMessage from './SignMessage.vue'
import SignBTCMessage from './SignBTCMessage.vue'
import Merge from './Merge.vue'
import Inscribe from './Inscribe.vue'
// 从query中获取数据
const route = useRoute()
Expand Down Expand Up @@ -188,6 +189,7 @@ const cancelAction = async () => {
<SignBTCPsbt v-if="actionName === 'SignBTCPsbt'" :params="params" />
<SignMessage v-if="actionName === 'SignMessage'" :params="params" />
<SignBTCMessage v-if="actionName === 'SignBTCMessage'" :params="params" />
<Inscribe v-if="actionName === 'Inscribe'" :params="params" />
</div>

<!-- buttons -->
Expand Down
17 changes: 17 additions & 0 deletions src/pages/authorize/Inscribe.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script lang="ts" setup>
import { CheckBadgeIcon } from '@heroicons/vue/24/solid'
import actions from '@/data/authorize-actions'
const action = actions.Inscribe
const accesses = ['View your wallet address, balance and activity', 'Request approval for transactions']
</script>

<template>
<h3 class="text-base font-bold">{{ action.title }}</h3>

<div class="mt-6 gap-x-2 flex items-center">
<CheckBadgeIcon class="h-6 w-6 text-primary-blue" />
<div class="text-sm text-gray-700">{{ action.description }}</div>
</div>
</template>

0 comments on commit c4ba99d

Please sign in to comment.