From aadfe206f3233032d8742a17c1f21d4750946a41 Mon Sep 17 00:00:00 2001 From: polwex Date: Wed, 16 Jul 2025 14:54:44 +0700 Subject: aaaarggh!!! --- components/Client.tsx | 21 +++++++++++++++++++++ components/login/ShipCredsForm.tsx | 5 ++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 components/Client.tsx (limited to 'components') diff --git a/components/Client.tsx b/components/Client.tsx new file mode 100644 index 0000000..17f3216 --- /dev/null +++ b/components/Client.tsx @@ -0,0 +1,21 @@ +"use client"; +import toast, { Toaster } from "react-hot-toast"; + +import "../shim"; +export default function ClientComponent({ children }: any) { + console.log("global", global.Buffer); + console.log("global crypto in client", global.crypto); + console.log((global as any).lmao); + // console.log((global as any).crypto, "global crypto in client"); + // console.log(crypto, "crypto in client"); + // console.log(crypto.randomUUID()); + // console.log(crypto.getRandomValues(new Uint8Array(16))); + // console.log((global as any).Buffer); + return ( + <> + {children} + + + + ); +} diff --git a/components/login/ShipCredsForm.tsx b/components/login/ShipCredsForm.tsx index d84a474..7853162 100644 --- a/components/login/ShipCredsForm.tsx +++ b/components/login/ShipCredsForm.tsx @@ -1,4 +1,5 @@ "use client"; + import { ColorScheme, lightColors } from "@/constants"; import { StyleSheet, @@ -15,7 +16,7 @@ import { pkDecrypt, pkEncrypt, } from "@/lib/passkey"; -import toast, { Toaster } from "react-hot-toast"; +import toast from "react-hot-toast"; import { makeWalletFromP } from "@/lib/urbit/wallet"; import { hex2buf } from "@/lib/utils/bit"; @@ -113,11 +114,9 @@ export function ShipForm() { style={{ marginTop: 0 }} isLoading={isLoading} /> - No Urbit ID? Get yours. - ); } -- cgit v1.2.3