tfrere commited on
Commit
ab84d6a
·
1 Parent(s): c750639

update url import icon and wording

Browse files
frontend/src/components/Benchmark/CreateForm.jsx CHANGED
@@ -27,7 +27,7 @@ import MenuBookIcon from "@mui/icons-material/MenuBook";
27
  import DownloadIcon from "@mui/icons-material/Download";
28
  import VisibilityIcon from "@mui/icons-material/Visibility";
29
  import CloseIcon from "@mui/icons-material/Close";
30
- import LinkIcon from "@mui/icons-material/Link";
31
  import { useThemeMode } from "../../hooks/useThemeMode";
32
  import getTheme from "../../config/theme";
33
  import API_CONFIG from "../../config/api";
@@ -365,7 +365,7 @@ function CreateForm({ onStartGeneration }) {
365
  >
366
  {selectedDocument?.name && urlSelected ? (
367
  <>
368
- <LinkIcon sx={{ fontSize: 50, color: "primary.main", mb: 1 }} />
369
  <Typography
370
  variant="h6"
371
  component="div"
@@ -383,7 +383,7 @@ function CreateForm({ onStartGeneration }) {
383
  fullWidth
384
  variant="outlined"
385
  label="Enter a new URL"
386
- placeholder="https://example.com"
387
  value={urlInput}
388
  onChange={handleUrlInputChange}
389
  disabled={isLoading}
@@ -394,16 +394,20 @@ function CreateForm({ onStartGeneration }) {
394
  {isLoading && urlSelected ? (
395
  <CircularProgress size={50} sx={{ mb: 1 }} />
396
  ) : (
397
- <LinkIcon sx={{ fontSize: 50, color: "primary.main", mb: 1 }} />
 
 
398
  )}
399
  <Typography variant="h6" component="div" gutterBottom>
400
- {isLoading && urlSelected ? "Processing URL..." : "Enter a URL"}
 
 
401
  </Typography>
402
  <TextField
403
  fullWidth
404
  variant="outlined"
405
  label="Website URL"
406
- placeholder="https://example.com"
407
  value={urlInput}
408
  onChange={handleUrlInputChange}
409
  disabled={isLoading}
 
27
  import DownloadIcon from "@mui/icons-material/Download";
28
  import VisibilityIcon from "@mui/icons-material/Visibility";
29
  import CloseIcon from "@mui/icons-material/Close";
30
+ import PublicIcon from "@mui/icons-material/Public";
31
  import { useThemeMode } from "../../hooks/useThemeMode";
32
  import getTheme from "../../config/theme";
33
  import API_CONFIG from "../../config/api";
 
365
  >
366
  {selectedDocument?.name && urlSelected ? (
367
  <>
368
+ <PublicIcon sx={{ fontSize: 50, color: "primary.main", mb: 1 }} />
369
  <Typography
370
  variant="h6"
371
  component="div"
 
383
  fullWidth
384
  variant="outlined"
385
  label="Enter a new URL"
386
+ placeholder="ex: https://en.wikipedia.org/wiki/Real_Madrid_CF"
387
  value={urlInput}
388
  onChange={handleUrlInputChange}
389
  disabled={isLoading}
 
394
  {isLoading && urlSelected ? (
395
  <CircularProgress size={50} sx={{ mb: 1 }} />
396
  ) : (
397
+ <PublicIcon
398
+ sx={{ fontSize: 50, color: "primary.main", mb: 1 }}
399
+ />
400
  )}
401
  <Typography variant="h6" component="div" gutterBottom>
402
+ {isLoading && urlSelected
403
+ ? "Processing URL..."
404
+ : "Enter an URL"}
405
  </Typography>
406
  <TextField
407
  fullWidth
408
  variant="outlined"
409
  label="Website URL"
410
+ placeholder="ex:https://en.wikipedia.org/wiki/Real_Madrid_CF"
411
  value={urlInput}
412
  onChange={handleUrlInputChange}
413
  disabled={isLoading}