Skip to content

Commit

Permalink
rework the ai analyst page
Browse files Browse the repository at this point in the history
  • Loading branch information
liberty-rising committed Jan 20, 2024
1 parent b29627c commit 0a32f32
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import RequireAuth from "./components/auth/RequireAuth";
import RequireSysAdminAuth from "./components/auth/RequireSysAdminAuth";
import AboutPage from "./pages/about/AboutPage";
import AdminPage from "./pages/admin/AdminPage";
import AnalyticsPage from "./pages/analytics/AnalyticsPage";
import AIAnalystPage from "./pages/ai-analyst/AIAnalystPage";
import BlogPage from "./pages/blog/BlogPage";
import ChangePasswordPage from "./pages/change-password/ChangePasswordPage";
import CreateChartPage from "./pages/charts/CreateChartPage";
Expand Down Expand Up @@ -187,11 +187,11 @@ function App() {
}
/>
<Route
path="/analytics"
path="/ai-analyst"
element={
<RequireAuth>
<AppLayout>
<AnalyticsPage />
<AIAnalystPage />
</AppLayout>
</RequireAuth>
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/navigation/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Tooltip,
} from "@mui/material";
import AccountBoxIcon from "@mui/icons-material/AccountBox";
import AnalyticsIcon from "@mui/icons-material/Analytics";
import SmartToyIcon from "@mui/icons-material/SmartToy";
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import DashboardIcon from "@mui/icons-material/Dashboard";
Expand All @@ -36,7 +36,7 @@ const Navigation = () => {
let menuItems = [
{ text: "Dashboards", icon: <DashboardIcon />, path: "/dashboards" },
{ text: "Data Upload", icon: <UploadFileIcon />, path: "/upload" },
{ text: "AI Analyst", icon: <AnalyticsIcon />, path: "/analytics" },
{ text: "AI Analyst", icon: <SmartToyIcon />, path: "/ai-analyst" },
{ text: "User Panel", icon: <AccountBoxIcon />, path: "/user" },
// { text: 'Logout', icon: <LogoutIcon />, path: '/logout' }
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import React from "react";
import { Box, Typography, Grid } from "@mui/material";
import AIAssistant from "./AIAssistant";

function AnalyticsPage() {
function AIAnalystPage() {
return (
<Box>
<Typography variant="h4" gutterBottom>
📊 AI Analyst
🤖 AI Analyst
</Typography>
<Grid container spacing={2}>
<Grid item xs={12}>
Expand All @@ -18,4 +18,4 @@ function AnalyticsPage() {
);
}

export default AnalyticsPage;
export default AIAnalystPage;

0 comments on commit 0a32f32

Please sign in to comment.