Skip to content

Commit 5464cd2

Browse files
committed
Remove pat
1 parent 1e93c38 commit 5464cd2

File tree

7 files changed

+1
-312
lines changed

7 files changed

+1
-312
lines changed

src/components/projects/projectId/admin/DeletePersonalTokenModal.tsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/components/projects/projectId/admin/NewPersonalTokenModal.tsx

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/components/projects/projectId/admin/ProjectAdmin.tsx

Lines changed: 0 additions & 126 deletions
This file was deleted.

src/components/shared/sidebar/Sidebar.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,6 @@ export default function Sidebar() {
148148
</div>
149149
</Tooltip>
150150
</div>}
151-
{(isAdmin && isManaged) && <div
152-
className="flex items-center justify-center overflow-visible mt-9 2xl:mt-12">
153-
<Tooltip placement="right" trigger="hover" color="invert" content={TOOLTIPS_DICT.SIDEBAR.ADMIN} className={`${project.numDataScaleUploaded == 0 ? 'pointer-events-none cursor-not-allowed' : 'cursor-pointer'}`}>
154-
<div className={`relative z-50 opacity-100 cursor-pointer`}>
155-
<a href={`/refinery/projects/${project.id}/admin`} onClick={(e: any) => { e.preventDefault(); router.push(`/projects/${project.id}/admin`) }}
156-
className={`${project.numDataScaleUploaded == 0 ? 'opacity-50 cursor-not-allowed' : 'opacity-100 cursor-pointer'} circle ${routeColor.admin.active ? 'text-kernpurple' : 'text-white'}`}>
157-
<IconUserCircle className="w-6 h-6" />
158-
</a>
159-
</div>
160-
</Tooltip>
161-
</div>}
162151
{user.role == UserRole.ENGINEER && <div
163152
className="flex items-center justify-center overflow-visible my-6 text-white">
164153
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="20px" fill="none"

src/pages/projects/[projectId]/admin/index.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/util/tooltip-constants.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,5 @@ export const TOOLTIPS_DICT = {
259259
'LABEL_ASSOCIATIONS': 'Has label associations',
260260
'STOP_EDIT': 'Stop editing record',
261261
'EDIT_RECORD': 'Editing record',
262-
},
263-
[CurrentPage.ADMIN_PAGE]: {
264-
'NEW_ACCESS_TOKEN': 'Create a new personal access token',
265-
'EXPIRATION_TIME': 'Choose expiration time of your token',
266-
'NAME_TOKEN': 'Name of your token',
267-
'VALUE_TOKEN': 'Value of the token',
268-
'TOKEN_COPIED': 'Copied'
269262
}
270263
}

submodules/react-components

0 commit comments

Comments
 (0)