From ac94ea72ab599a95b9c049f7d2efc28b6a633a18 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Sun, 26 Nov 2023 18:49:33 -0500 Subject: [PATCH] update copy on URL input section --- frontend/src/components/UrlInputSection.tsx | 27 +++++++-------------- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/UrlInputSection.tsx b/frontend/src/components/UrlInputSection.tsx index 20e9c54..abf50a9 100644 --- a/frontend/src/components/UrlInputSection.tsx +++ b/frontend/src/components/UrlInputSection.tsx @@ -12,11 +12,13 @@ interface Props { export function UrlInputSection({ doCreate, screenshotOneApiKey }: Props) { const [isLoading, setIsLoading] = useState(false); const [referenceUrl, setReferenceUrl] = useState(""); - const isDisabled = !screenshotOneApiKey; async function takeScreenshot() { if (!screenshotOneApiKey) { - toast.error("Please add a Screenshot API key in the settings dialog"); + toast.error( + "Please add a ScreenshotOne API key in the Settings dialog. This is optional - you can also drag/drop and upload images directly.", + { duration: 8000 } + ); return; } @@ -64,24 +66,13 @@ export function UrlInputSection({ doCreate, screenshotOneApiKey }: Props) { onChange={(e) => setReferenceUrl(e.target.value)} value={referenceUrl} /> - - {isDisabled && ( -
- - To screenshot a URL, add a{" "} - - ScreenshotOne API key - {" "} - in the settings dialog. - -
- )} ); }