creddy/src/views/Home.svelte

18 lines
514 B
Svelte
Raw Normal View History

2022-11-23 17:11:44 -08:00
<script>
import { onMount, createEventDispatcher } from 'svelte';
2022-11-23 17:11:44 -08:00
export let appState;
2022-11-23 17:11:44 -08:00
const dispatch = createEventDispatcher();
2022-11-23 17:11:44 -08:00
onMount(async () => {
// will block until a request comes in
let req = await appState.pendingRequests.get();
appState.currentRequest = req;
2022-12-13 16:50:44 -08:00
console.log('Got credentials request from queue:');
console.log(req);
dispatch('navigate', {target: 'Approve'});
});
2022-11-23 17:11:44 -08:00
</script>
2022-08-14 13:27:41 -07:00
<h1 class="text-4xl text-gray-300">Creddy</h1>