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. - -
- )} ); }