diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80c370f..a964c0b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,45 +1 @@ -"use client"; - -import React, { createContext, useContext, useState, useEffect } from "react"; - -const AccountContext = createContext(); - -export const useAccount = () => { - const context = useContext(AccountContext); - if (!context) { - throw new Error("useAccount must be used within an AccountProvider"); - } - return context; -}; - -export const AccountProvider = ({ children }) => { - const [accountId, setAccountId] = useState(() => { - if (typeof window !== "undefined") { - // Initialize from localStorage if available - return localStorage.getItem("accountId"); - } - return null; - }); - - useEffect(() => { - if (accountId) { - localStorage.setItem("accountId", accountId); - } else { - localStorage.removeItem("accountId"); - } - }, [accountId]); - - - const value = { - accountId, - setAccountId, - }; - - return ( - - {children} - - ); -}; - -export default AccountProvider; +https://turbotenant.com/r/T3duZXI6MTA2NDk3OA== diff --git a/viviarentals.com b/viviarentals.com new file mode 100644 index 0000000..bd2f287 --- /dev/null +++ b/viviarentals.com @@ -0,0 +1,20 @@ + +TurboTenant: Property Management Software for Landlords + + + + + + + + + + + + + + + + + +