Update/fix `ChangeHandle` form (#1280)

* fix well-known did copy value

* s/Domain/Host in change handle form
zio/stable
Eric Bailey 2023-08-25 10:47:12 -05:00 committed by GitHub
parent 37a70f0a67
commit 953ae9c096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -316,9 +316,9 @@ function CustomHandleForm({
// events
// =
const onPressCopy = React.useCallback(() => {
Clipboard.setString(`did=${store.me.did}`)
Clipboard.setString(isDNSForm ? `did=${store.me.did}` : store.me.did)
Toast.show('Copied to clipboard')
}, [store.me.did])
}, [store.me.did, isDNSForm])
const onChangeHandle = React.useCallback(
(v: string) => {
setHandle(v)
@ -410,11 +410,11 @@ function CustomHandleForm({
{isDNSForm ? (
<>
<Text type="md" style={[pal.text, s.pb5, s.pl5]}>
Add the following record to your domain:
Add the following DNS record to your domain:
</Text>
<View style={[styles.dnsTable, pal.btn]}>
<Text type="md-medium" style={[styles.dnsLabel, pal.text]}>
Domain:
Host:
</Text>
<View style={[styles.dnsValue]}>
<Text type="mono" style={[styles.monoText, pal.text]}>