From b221a83ecef1dd7f9583d5107017d24e668205a6 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Thu, 2 Jul 2026 20:17:44 +0530 Subject: Added React global state + role based security sample app --- react/08-auth-with-context/src/pages/AboutPage.jsx | 9 +++++++++ react/08-auth-with-context/src/pages/AdminPage.jsx | 9 +++++++++ react/08-auth-with-context/src/pages/HomePage.jsx | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 react/08-auth-with-context/src/pages/AboutPage.jsx create mode 100644 react/08-auth-with-context/src/pages/AdminPage.jsx create mode 100644 react/08-auth-with-context/src/pages/HomePage.jsx (limited to 'react/08-auth-with-context/src/pages') diff --git a/react/08-auth-with-context/src/pages/AboutPage.jsx b/react/08-auth-with-context/src/pages/AboutPage.jsx new file mode 100644 index 0000000..fb55b44 --- /dev/null +++ b/react/08-auth-with-context/src/pages/AboutPage.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const AboutPage = () => { + return ( +
AboutPage
+ ) +} + +export default AboutPage \ No newline at end of file diff --git a/react/08-auth-with-context/src/pages/AdminPage.jsx b/react/08-auth-with-context/src/pages/AdminPage.jsx new file mode 100644 index 0000000..766d828 --- /dev/null +++ b/react/08-auth-with-context/src/pages/AdminPage.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const AdminPage = () => { + return ( +
AdminPage
+ ) +} + +export default AdminPage \ No newline at end of file diff --git a/react/08-auth-with-context/src/pages/HomePage.jsx b/react/08-auth-with-context/src/pages/HomePage.jsx new file mode 100644 index 0000000..a082c29 --- /dev/null +++ b/react/08-auth-with-context/src/pages/HomePage.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const HomePage = () => { + return ( +
HomePage
+ ) +} + +export default HomePage \ No newline at end of file -- cgit v1.2.3