Skip to content

Commit

Permalink
fix: show personal access token id and name in updating (#262)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao committed Aug 18, 2023
1 parent 0be29ce commit 9fc5dc7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions public/icons/tokens/key.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/components/developer/tokens/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
InputLabel,
FormGroup,
FormHelperText,
Paper,
} from '@mui/material';
import { useEffect, useState } from 'react';
import { formatDate, getExpiredTime } from '../../../lib/utils';
Expand Down Expand Up @@ -204,6 +205,20 @@ export default function UpdateTokens() {
Update personal access token
</Typography>
<Divider sx={{ mt: 2, mb: 2 }} />
<Paper
variant="outlined"
sx={{ flexGrow: '1', display: 'inline-flex', alignItems: 'center', mb: '1rem', p: '1rem' }}
>
<Box component="img" src="/icons/tokens/key.svg" sx={{ width: '2.6rem', height: '2.6rem', mr: '1rem' }} />
<Box>
<Typography component="div" variant="body1" fontFamily="mabry-bold">
ID:&nbsp;&nbsp;{tokens.id}
</Typography>
<Typography component="div" variant="body1" fontFamily="mabry-bold">
Name:&nbsp;&nbsp;{tokens.name}
</Typography>
</Box>
</Paper>
<Box component="form" onSubmit={handleSubmit} noValidate>
<FormControl fullWidth>
<Box sx={{ display: 'flex', alignItems: 'center' }}>
Expand Down

0 comments on commit 9fc5dc7

Please sign in to comment.