Updated forms.

This commit is contained in:
Mike Cao 2020-08-16 21:28:54 -07:00
parent 48b83d7e41
commit d3514cfc5f
7 changed files with 47 additions and 17 deletions

View file

@ -10,14 +10,15 @@ export default function TrackingCodeForm({ values, onClose }) {
return (
<FormLayout>
<p>
This is the public URL for <b>{values.name}</b>.
This is the publicly shared URL for <b>{values.name}</b>.
</p>
<FormRow>
<textarea
ref={ref}
rows={3}
cols={60}
defaultValue={`${document.location.origin}/share/${share_id}/${name}`}
spellCheck={false}
defaultValue={`${document.location.origin}/share/${share_id}/${encodeURIComponent(name)}`}
readOnly
/>
</FormRow>