refactor: simplify callback handler component

This commit is contained in:
Zack Spear
2023-07-26 14:19:06 -07:00
parent 8f9e664534
commit 4284dff515

View File

@@ -1,24 +1,18 @@
<script setup lang="ts">
import { storeToRefs } from 'pinia';
import 'tailwindcss/tailwind.css';
import '~/assets/main.css';
import { useCallbackStore } from '~/store/callback';
import { useCallbackStore } from '~/store/callbackActions';
const callbackStore = useCallbackStore();
const { decryptedData } = storeToRefs(callbackStore);
onBeforeMount(() => {
callbackStore.watcher();
});
</script>
<template>
<div class="text-white font-semibold p-4 bg-orange-400 rounded-lg">
<h2>CallbackHandler.ce</h2>
<pre>{{ JSON.stringify(decryptedData, null, 2) }}</pre>
</div>
<slot />
</template>
<style lang="postcss">