Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
sameoldlab committed Jul 31, 2024
1 parent ed4d08e commit 301f618
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/svelte/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<script lang="ts">
// import config from '../../../../packages/ui.old/src/wagmiConfig'
import { addEvmConnection } from '@fractl-ui/evm'
import 'fractl-ui'
import { create } from 'fractl-ui'
import wagmiConfig from './lib/wagmiConfig'
import { onMount } from 'svelte'
import { reconnect } from '@wagmi/core'
Expand All @@ -16,10 +16,12 @@
// const config = addStarknetConnection()
const config = addEvmConnection($wagmiConfig)
// const { status } = config.state
const connect = async () =>
create(addEvmConnection($wagmiConfig)).then((connect) => connect())
</script>

<header>
<fractl-modal {config} btnClass="button-85" />
<button on:click={connect}>Connect</button>
</header>
<main>
<div class="hero">
Expand Down Expand Up @@ -58,7 +60,6 @@
</svg>
</a>
</footer>

<style>
header {
display: flex;
Expand Down

0 comments on commit 301f618

Please sign in to comment.