diff --git a/packages/svelte/src/lib/components/gun/profile/ProfileDisplay.svelte b/packages/svelte/src/lib/components/gun/profile/ProfileDisplay.svelte new file mode 100644 index 0000000..0a44b83 --- /dev/null +++ b/packages/svelte/src/lib/components/gun/profile/ProfileDisplay.svelte @@ -0,0 +1,94 @@ + + +
+
+

Profile

+ {#each fields as field} +
+ + {#if editingField === field} + updateField(field, e.target.value)} + on:keydown={e => e.key === 'Enter' && updateField(field, e.target.value)} + /> + {:else} +
editingField = field}> + {profile[field] || 'Click to edit'} +
+ {/if} +
+ {/each} + +
+ +
+ + +
+ +
+
+
+ + \ No newline at end of file