]> PHS Git Server - phs-admin.git/commitdiff
Creating VPNContext.jsx to share state through all vpn components.
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 18:05:03 +0000 (13:05 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 18:05:03 +0000 (13:05 -0500)
src/app/components/VPN/VPNContext.jsx

index 35cdafc07d6c60b1f534eac4307ef0a683be51cf..66a246f9688ef47b153e7cb27714a8137f3ed250 100644 (file)
@@ -67,7 +67,7 @@ export const VPNProvider = ( { children } ) => {
     handleRevokeClientSubmit
   };
 
-  return <VPNContext.Provider value={ value }>{children}
+  return <VPNContext.Provider value={ value }>
     {revokeOpen && <ConfirmRevoke open={revokeOpen} onClose={() => setRevokeOpen(false)} onConfirm={handleRevokeClientSubmit}/>}
     {createOpen && <CreateVPNClientDialog open={createOpen} onClose={() => setCreateOpen(false)} onCreate={handleCreateClientSubmit}/>}
     { children }</VPNContext.Provider>;