Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ function SwitchAccount() {
setControlledVisible={setControlledVisible}
image={require('../../../../image/sigma.png')}
/>
<AccountItem
{/* <AccountItem
name="settings"
setControlledVisible={setControlledVisible}
link={routes.settings.path}
image={require('./keys.png')}
/>
/> */}
</div>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Settings/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Route, Routes } from 'react-router-dom';
/* import { Route, Routes } from 'react-router-dom';
import IpfsSettings from 'src/features/ipfs/ipfsSettings';
import Layout from './Layout/Layout';
import Keys from '../Keys/Keys';
Expand All @@ -20,3 +20,4 @@ function Settings() {
}

export default Settings;
*/
25 changes: 25 additions & 0 deletions src/pages/robot/Layout/LayoutRoot/RootMenu/RootMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,31 @@ const links: MenuItem[] = [
// description: 'bytes',
icon: '👻',
},
{
text: 'Drive',
link: '/robot/drive',
icon: '🟥',
},
{
text: 'Keys',
link: '/robot/keys',
icon: '🗝',
},
{
text: 'Tokens',
link: './tokens',
icon: '🟢',
},
{
text: 'Networks',
link: './networks',
icon: '🌐',
},
{
text: 'Channels',
link: './channels',
icon: '📡',
},
];

type Props = {
Expand Down
8 changes: 8 additions & 0 deletions src/pages/robot/Robot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import Heroes from './_refactor/account/tabs/heroes';
import Karma from './Karma/Karma';
import Follows from './_refactor/account/tabs/Follows/Follows';
import Soul from './Soul/Soul';
import IpfsSettings from 'src/features/ipfs/ipfsSettings';
import Keys from '../Keys/Keys';
import Audio from 'src/pages/Settings/Audio/Audio';
import Hub from '../Hub/hub';

function RobotRoutes() {
const { isLoading, address } = useRobotContext();
Expand Down Expand Up @@ -44,6 +48,10 @@ function RobotRoutes() {
<Route path="rights" element={<UnderConstruction />} />
<Route path="karma" element={<Karma />} />
<Route path="badges" element={<TableDiscipline />} />
<Route path="keys" element={<Keys />} />
<Route path="audio" element={<Audio />} />
<Route path="drive" element={<IpfsSettings />} />
<Route path="/*" element={<Hub />} />
</Route>
)}

Expand Down
9 changes: 9 additions & 0 deletions src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ export const routes = {
soul: {
path: '/robot/soul',
},
keys: {
path: '/robot/keys',
},
audio: {
path: '/robot/audio',
},
hub: {
path: '/robot/hub',
},
},
},
robotPassport: {
Expand Down