Added profile settings page
This commit is contained in:
parent
28580095dd
commit
da7bdb6513
4 changed files with 53 additions and 0 deletions
|
|
@ -153,6 +153,11 @@ export default function Header(): JSX.Element {
|
||||||
Admin Page
|
Admin Page
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
|
<DropdownMenuItem
|
||||||
|
onClick={() => navigate("/account/settings")}
|
||||||
|
>
|
||||||
|
Profile Settings
|
||||||
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
logout();
|
logout();
|
||||||
|
|
|
||||||
37
src/frontend/src/pages/ProfileSettingsPage/index.tsx
Normal file
37
src/frontend/src/pages/ProfileSettingsPage/index.tsx
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
import { useContext, useEffect } from "react";
|
||||||
|
import IconComponent from "../../components/genericIconComponent";
|
||||||
|
import Header from "../../components/headerComponent";
|
||||||
|
import { Input } from "../../components/ui/input";
|
||||||
|
import { alertContext } from "../../contexts/alertContext";
|
||||||
|
import { TabsContext } from "../../contexts/tabsContext";
|
||||||
|
export default function ProfileSettingsPage(): JSX.Element {
|
||||||
|
const { setTabId } = useContext(TabsContext);
|
||||||
|
|
||||||
|
// set null id
|
||||||
|
useEffect(() => {
|
||||||
|
setTabId("");
|
||||||
|
}, []);
|
||||||
|
const { setErrorData } = useContext(alertContext);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Header />
|
||||||
|
|
||||||
|
<div className="community-page-arrangement">
|
||||||
|
<div className="community-page-nav-arrangement">
|
||||||
|
<span className="community-page-nav-title">
|
||||||
|
<IconComponent name="User" className="w-6" />
|
||||||
|
Profile Settings
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<span className="community-page-description-text">
|
||||||
|
Change your profile settings like your password and your profile
|
||||||
|
picture.
|
||||||
|
</span>
|
||||||
|
<div className="community-pages-flows-panel">
|
||||||
|
<Input placeholder="Password"></Input>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
@ -9,6 +9,7 @@ import ApiKeysPage from "./pages/ApiKeysPage";
|
||||||
import CommunityPage from "./pages/CommunityPage";
|
import CommunityPage from "./pages/CommunityPage";
|
||||||
import FlowPage from "./pages/FlowPage";
|
import FlowPage from "./pages/FlowPage";
|
||||||
import HomePage from "./pages/MainPage";
|
import HomePage from "./pages/MainPage";
|
||||||
|
import ProfileSettingsPage from "./pages/ProfileSettingsPage";
|
||||||
import ViewPage from "./pages/ViewPage";
|
import ViewPage from "./pages/ViewPage";
|
||||||
import DeleteAccountPage from "./pages/deleteAccountPage";
|
import DeleteAccountPage from "./pages/deleteAccountPage";
|
||||||
import LoginPage from "./pages/loginPage";
|
import LoginPage from "./pages/loginPage";
|
||||||
|
|
@ -95,6 +96,14 @@ const Router = () => {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Route path="/account">
|
<Route path="/account">
|
||||||
|
<Route
|
||||||
|
path="settings"
|
||||||
|
element={
|
||||||
|
<ProtectedRoute>
|
||||||
|
<ProfileSettingsPage />
|
||||||
|
</ProtectedRoute>
|
||||||
|
}
|
||||||
|
/>
|
||||||
<Route
|
<Route
|
||||||
path="delete"
|
path="delete"
|
||||||
element={
|
element={
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ import {
|
||||||
Undo,
|
Undo,
|
||||||
Unplug,
|
Unplug,
|
||||||
Upload,
|
Upload,
|
||||||
|
User,
|
||||||
UserCog2,
|
UserCog2,
|
||||||
UserMinus2,
|
UserMinus2,
|
||||||
UserPlus2,
|
UserPlus2,
|
||||||
|
|
@ -221,6 +222,7 @@ export const nodeIconsLucide: iconsType = {
|
||||||
ChatVertexAI: VertexAIIcon,
|
ChatVertexAI: VertexAIIcon,
|
||||||
VertexAIEmbeddings: VertexAIIcon,
|
VertexAIEmbeddings: VertexAIIcon,
|
||||||
agents: Rocket,
|
agents: Rocket,
|
||||||
|
User,
|
||||||
WikipediaAPIWrapper: SvgWikipedia,
|
WikipediaAPIWrapper: SvgWikipedia,
|
||||||
chains: Link,
|
chains: Link,
|
||||||
memories: Cpu,
|
memories: Cpu,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue