diff --git a/src/App.jsx b/src/App.jsx
index ae7d65f..c6d7ca6 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,26 +1,29 @@
/*eslint-disable */
import Login from "./Screens/Login.jsx";
-import { useState, useEffect } from "react";
+import { useState, useEffect, createContext } from "react";
import MainApp from "./Screens/MainApp.jsx";
import sjcl from "sjcl";
+export const Appcontext = createContext();
export default function App() {
const [keys, setKeys] = useState({ public: "", private: "" });
- if (keys.private !== "") {
- console.log("heykj");
- console.log(keys.private);
- window.localStorage.setItem("private", keys.private);
- } else {
- if (window.localStorage.getItem("private") !== null) {
- console.log(window.localStorage.getItem("private"));
- setKeys({
- private: window.localStorage.getItem("private"),
- });
+ useEffect(() => {
+ if (keys.private !== "") {
+ window.localStorage.setItem("private", keys.private);
+ } else {
+ if (window.localStorage.getItem("private") !== null) {
+ setKeys({
+ private: window.localStorage.getItem("private"),
+ });
+ }
}
- }
- console.log(keys);
+ }, [keys.private]);
return keys.private.length < 10 ? (
-
- Comision BLC: {comision} -
Comision XLM: {fee}