From 8d4fcfba5c972d1c353e75a4c9e92a23a3b852c5 Mon Sep 17 00:00:00 2001 From: Juan Di Toro Date: Fri, 22 Mar 2024 19:33:30 +0100 Subject: [PATCH] feat: connecting the pinning thingy --- app/components/general-layout.tsx | 2 +- app/components/pinning-network-banner.tsx | 44 +++++++++++++---------- app/routes/_index.tsx | 2 +- app/routes/file-manager/index.tsx | 3 +- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/app/components/general-layout.tsx b/app/components/general-layout.tsx index eab243f..a61ff90 100644 --- a/app/components/general-layout.tsx +++ b/app/components/general-layout.tsx @@ -110,7 +110,7 @@ export const GeneralLayout = ({ children }: React.PropsWithChildren) => { - + + - ); }; diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index f8372ce..b8c379f 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -3,7 +3,7 @@ import {Navigate} from "@remix-run/react"; export default function Index() { return ( - Checking Login Status }> diff --git a/app/routes/file-manager/index.tsx b/app/routes/file-manager/index.tsx index 12752af..1c760e4 100644 --- a/app/routes/file-manager/index.tsx +++ b/app/routes/file-manager/index.tsx @@ -21,7 +21,7 @@ import { usePinning } from "~/hooks/usePinning"; export default function FileManager() { return ( - +

File Manager

@@ -98,6 +98,7 @@ const PinFilesForm = () => { }, shouldValidate: "onSubmit", onSubmit(e, { submission }) { + e.preventDefault(); if (submission?.status === "success") { const value = submission.value;