tmp
This commit is contained in:
parent
df6f5c3a09
commit
e7aeeace26
18 changed files with 614 additions and 65 deletions
|
@ -1,3 +1,4 @@
|
|||
import RolesContainer from '@/components/admin/roles/RolesContainer';
|
||||
import React, { useState } from 'react';
|
||||
import { NavLink, Route, RouteComponentProps, Switch } from 'react-router-dom';
|
||||
import NotFound from '@/components/screens/NotFound';
|
||||
|
@ -126,6 +127,10 @@ export default ({ location, match }: RouteComponentProps) => {
|
|||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" /></svg>
|
||||
<span>Users</span>
|
||||
</NavLink>
|
||||
<NavLink to={`${match.url}/roles`}>
|
||||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" /></svg>
|
||||
<span>Roles</span>
|
||||
</NavLink>
|
||||
|
||||
<span>Service Management</span>
|
||||
|
||||
|
@ -144,7 +149,7 @@ export default ({ location, match }: RouteComponentProps) => {
|
|||
</NavLink>
|
||||
|
||||
<div className={'user'}>
|
||||
<img src={'https://cdn.krygon.app/avatars/52564280420073473/7db9f06013ec39f7fa5c1e79241c43afa1f152d82cbb193ecaab7753b9a3e61e?size=64'} alt="Profile Picture" css={tw`h-10 w-10 rounded-full select-none`} />
|
||||
<img src={'https://www.gravatar.com/avatar/78a6a270ec41715a8ae96c02b8961f9e?s=64'} alt="Profile Picture" css={tw`h-10 w-10 rounded-full select-none`} />
|
||||
|
||||
<div css={tw`flex flex-col ml-4`}>
|
||||
<span css={tw`font-header font-medium text-sm text-neutral-50 whitespace-no-wrap leading-tight select-none`}>Matthew Penner</span>
|
||||
|
@ -170,6 +175,7 @@ export default ({ location, match }: RouteComponentProps) => {
|
|||
<Route path={`${match.path}/nodes`} component={NodesContainer}/>
|
||||
<Route path={`${match.path}/servers`} component={ServersContainer}/>
|
||||
<Route path={`${match.path}/users`} component={UsersContainer}/>
|
||||
<Route path={`${match.path}/roles`} component={RolesContainer}/>
|
||||
|
||||
<Route path={`${match.path}/nests`} component={NestsContainer}/>
|
||||
<Route path={`${match.path}/mounts`} component={MountsContainer}/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue