summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/Client.tsx21
-rw-r--r--components/login/ShipCredsForm.tsx5
2 files changed, 23 insertions, 3 deletions
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}
+
+ <Toaster position={"top-center"} />
+ </>
+ );
+}
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}
/>
-
<TouchableOpacity style={styles.footer}>
<Text style={styles.footerText}>No Urbit ID? Get yours.</Text>
</TouchableOpacity>
- <Toaster position={"top-center"} />
</View>
);
}