Skip to content

Commit 9b8adae

Browse files
announcements page added (#2479)
added columns and linked snackbar added description and enablement to popup added option to edit the table multiple announcements can be displayed together removed announcement spacing, alert icon and title label cleaned up code and cooments added aria label commented out test for LA fires announcement
1 parent 949985d commit 9b8adae

File tree

7 files changed

+536
-35
lines changed

7 files changed

+536
-35
lines changed

client/src/Routes.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const MuiDemo = lazy(() => import("./components/MuiDemo/MuiDemo"));
5353
const Features = lazy(() => import("./components/Admin/Features"));
5454
const Profile = lazy(() => import("./components/Account/Profile"));
5555
const Suggestion = lazy(() => import("components/FoodSeeker/Suggestion"));
56+
const Announcements = lazy(() => import("./components/Admin/Announcements"));
5657

5758
export default function AppRoutes() {
5859
const hasUserFeedbackSuveyFeatureFlag = useFeatureFlag("userFeedbackSurvey");
@@ -181,6 +182,14 @@ export default function AppRoutes() {
181182
</PrivateRoute>
182183
}
183184
/>
185+
<Route
186+
path="announcements"
187+
element={
188+
<PrivateRoute roles={["isAdmin"]}>
189+
<Announcements />
190+
</PrivateRoute>
191+
}
192+
/>
184193
<Route
185194
path="securityadmindashboard"
186195
element={

0 commit comments

Comments
 (0)