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 // events
// = // =
const onPressCopy = React.useCallback(() => { 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') Toast.show('Copied to clipboard')
}, [store.me.did]) }, [store.me.did, isDNSForm])
const onChangeHandle = React.useCallback( const onChangeHandle = React.useCallback(
(v: string) => { (v: string) => {
setHandle(v) setHandle(v)
@ -410,11 +410,11 @@ function CustomHandleForm({
{isDNSForm ? ( {isDNSForm ? (
<> <>
<Text type="md" style={[pal.text, s.pb5, s.pl5]}> <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> </Text>
<View style={[styles.dnsTable, pal.btn]}> <View style={[styles.dnsTable, pal.btn]}>
<Text type="md-medium" style={[styles.dnsLabel, pal.text]}> <Text type="md-medium" style={[styles.dnsLabel, pal.text]}>
Domain: Host:
</Text> </Text>
<View style={[styles.dnsValue]}> <View style={[styles.dnsValue]}>
<Text type="mono" style={[styles.monoText, pal.text]}> <Text type="mono" style={[styles.monoText, pal.text]}>