Skip to content

Commit

Permalink
1983 UI for managing feature flags (#2033)
Browse files Browse the repository at this point in the history
* Finish backend API

* start on frontend

* Feature server and hook added

* Display features in admin menu

* implement feature flag

* remove comments

* Update button theme

* clean up format
  • Loading branch information
junjun107 authored Mar 12, 2024
1 parent a359e93 commit 4f80ff1
Show file tree
Hide file tree
Showing 17 changed files with 770 additions and 11 deletions.
18 changes: 17 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const About = lazy(() => import("./components/About"));
const Faq = lazy(() => import("./components/Faq"));
const Contact = lazy(() => import("./components/StaticPages/Contact"));
const MuiDemo = lazy(() => import("./components/MuiDemo/MuiDemo"));
const Features = lazy(() => import("./components/Admin/Features"));

function App() {
useEffect(() => {
Expand Down Expand Up @@ -170,7 +171,6 @@ function App() {
</div>
}
/>

<Route
path="verificationdashboard"
element={
Expand Down Expand Up @@ -276,6 +276,22 @@ function App() {
</PrivateRoute>
}
/>
<Route
path="features"
element={
<PrivateRoute roles={["isAdmin"]}>
<div
style={{
flexBasis: "90%",
paddingTop: "1em",
paddingBottom: "1em",
}}
>
<Features />
</div>
</PrivateRoute>
}
/>
<Route
path="securityadmindashboard"
element={
Expand Down
Loading

0 comments on commit 4f80ff1

Please sign in to comment.