Update/fix `ChangeHandle` form (#1280)
* fix well-known did copy value * s/Domain/Host in change handle formzio/stable
parent
37a70f0a67
commit
953ae9c096
|
@ -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]}>
|
||||||
|
|
Loading…
Reference in New Issue