fix
This commit is contained in:
@@ -8,7 +8,9 @@ interface URLFormProps {
|
||||
}
|
||||
|
||||
export default function URLForm({ onSubmit, disabled }: URLFormProps) {
|
||||
const [url, setUrl] = useState('');
|
||||
// Get example URL from environment variables or use a default
|
||||
const exampleUrl = process.env.NEXT_PUBLIC_EXAMPLE_URL || 'https://example.com';
|
||||
const [url, setUrl] = useState(exampleUrl);
|
||||
const [error, setError] = useState('');
|
||||
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
@@ -64,7 +66,7 @@ export default function URLForm({ onSubmit, disabled }: URLFormProps) {
|
||||
type="text"
|
||||
value={url}
|
||||
onChange={(e) => setUrl(e.target.value)}
|
||||
placeholder="https://example.com"
|
||||
placeholder={exampleUrl}
|
||||
className="w-full p-3 rounded-md transition-colors"
|
||||
style={{
|
||||
background: 'var(--card-bg)',
|
||||
|
||||
Reference in New Issue
Block a user