Skip to content

Commit 17fb2c4

Browse files
committed
fix: Resolves "Add Domain" UI confusion.
1 parent faa3519 commit 17fb2c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/domains/AddDomain.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const AddDomain = ({ closeModal, domains = [] }: AddDomainProps) => {
3636
}
3737
});
3838
if (invalidDomains.length > 0) {
39-
setNewDomainError(`Please Insert Valid Domain URL. Invalid URLs: ${invalidDomains.join(', ')}`);
39+
setNewDomainError(`Please Insert Valid Website URL. ${invalidDomains.length > 1 ? `Invalid URLs: ${invalidDomains.join(', ')}` : ''}`);
4040
} else if (domainsTobeAdded.length > 0) {
4141
console.log('domainsTobeAdded :', domainsTobeAdded);
4242
addMutate(domainsTobeAdded);
@@ -51,11 +51,11 @@ const AddDomain = ({ closeModal, domains = [] }: AddDomainProps) => {
5151
return (
5252
<Modal closeModal={() => { closeModal(false); }} title={'Add New Domain'}>
5353
<div data-testid="adddomain_modal">
54-
<h4 className='text-sm mt-4'>Domain URL</h4>
54+
<h4 className='text-sm mt-4 pb-2'>Website URL(s)</h4>
5555
<textarea
5656
className={`w-full h-40 border rounded border-gray-200 p-4 outline-none
5757
focus:border-indigo-300 ${newDomainError ? ' border-red-400 focus:border-red-400' : ''}`}
58-
placeholder="Type or Paste URLs here. Insert Each URL in a New line."
58+
placeholder={'Type or Paste URLs here. Insert Each URL in a New line. eg: \nhttps://mysite.com/ \nhttps://anothersite.com/ '}
5959
value={newDomain}
6060
autoFocus={true}
6161
onChange={handleDomainInput}>

0 commit comments

Comments
 (0)