Skip to content

Commit 9502e9c

Browse files
committed
Allow updating existing ENS entries, not just registering new ones
1 parent 0d90c71 commit 9502e9c

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

src/app/clear-signing/admin/page.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,18 @@ export default function AdminPage() {
202202
<div className="font-mono text-[11px] text-secondary mb-2">
203203
{c.address}
204204
</div>
205-
{entry ? (
206-
<pre className="bg-surface rounded px-3 py-2 text-[11px] font-mono overflow-x-auto">
205+
{entry && (
206+
<pre className="bg-surface rounded px-3 py-2 text-[11px] font-mono overflow-x-auto mb-2">
207207
{JSON.stringify(entry, null, 2)}
208208
</pre>
209-
) : (
210-
account && (
211-
<button
212-
onClick={() => handleWritePreset(c.address)}
213-
className="px-3 py-1.5 text-[12px] font-mono border border-border rounded hover:bg-surface transition-colors cursor-pointer"
214-
>
215-
Register
216-
</button>
217-
)
209+
)}
210+
{account && (
211+
<button
212+
onClick={() => handleWritePreset(c.address)}
213+
className="px-3 py-1.5 text-[12px] font-mono border border-border rounded hover:bg-surface transition-colors cursor-pointer"
214+
>
215+
{entry ? "Update" : "Register"}
216+
</button>
218217
)}
219218
</div>
220219
);

0 commit comments

Comments
 (0)