aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-07-07 08:51:53 -0500
committerDhravya <[email protected]>2024-07-07 08:51:53 -0500
commit0ac78ae2feb917a96c84448abbc38fbe474ca212 (patch)
treeabba6a2a39829dfb3982b52cab094dd19bd4838d /apps/web/app
parentMerge pull request #107 from MaheshtheDev/maheshthedev/fix-filter (diff)
downloadsupermemory-0ac78ae2feb917a96c84448abbc38fbe474ca212.tar.xz
supermemory-0ac78ae2feb917a96c84448abbc38fbe474ca212.zip
cleaned up migrations
Diffstat (limited to 'apps/web/app')
-rw-r--r--apps/web/app/(dash)/home/queryinput.tsx6
-rw-r--r--apps/web/app/(quicklinks)/extension/route.ts7
2 files changed, 13 insertions, 0 deletions
diff --git a/apps/web/app/(dash)/home/queryinput.tsx b/apps/web/app/(dash)/home/queryinput.tsx
index 2c4b6533..d622b8b0 100644
--- a/apps/web/app/(dash)/home/queryinput.tsx
+++ b/apps/web/app/(dash)/home/queryinput.tsx
@@ -82,6 +82,9 @@ function QueryInput({
onKeyDown={(e) => {
if (e.key === "Enter" && !e.shiftKey) {
e.preventDefault();
+ if (q.trim().length === 0) {
+ return;
+ }
handleSubmit(q, preparedSpaces);
setQ("");
}
@@ -95,6 +98,9 @@ function QueryInput({
type="submit"
onClick={(e) => {
e.preventDefault();
+ if (q.trim().length === 0) {
+ return;
+ }
handleSubmit(q, preparedSpaces);
}}
disabled={disabled}
diff --git a/apps/web/app/(quicklinks)/extension/route.ts b/apps/web/app/(quicklinks)/extension/route.ts
new file mode 100644
index 00000000..4811d808
--- /dev/null
+++ b/apps/web/app/(quicklinks)/extension/route.ts
@@ -0,0 +1,7 @@
+import { redirect } from "next/navigation";
+
+export async function GET() {
+ return redirect(
+ "https://chromewebstore.google.com/detail/supermemory/afpgkkipfdpeaflnpoaffkcankadgjfc?authuser=0&hl=en-GB",
+ );
+}