diff --git a/src/App.tsx b/src/App.tsx index a8d3016..6bc1059 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -263,8 +263,6 @@ export default function App() { setWebsiteInput(""); setWebsiteError(""); }; - }); - }; const onRemoveRow = (row: RowEntry) => { const label = row.kind === "file" ? row.path : row.url; @@ -718,7 +716,7 @@ export default function App() {
- +
@@ -773,6 +771,55 @@ export default function App() { + {websiteModalOpen && ( +
{ + if (event.target === event.currentTarget) { + closeWebsiteModal(); + } + }} + > +
{ + event.preventDefault(); + onSubmitWebsite(); + }} + > +
+

Add URL

+ +
+
+ + { + setWebsiteInput(event.target.value); + if (websiteError) setWebsiteError(""); + }} + placeholder="https://example.com" + type="url" + /> + {websiteError &&
{websiteError}
} +
+ + +
+
+
+
+ )} + {sessionModalOpen && (