2062 view edit an api key (#2231)
* Add query to get api keys * Add a link to apiKey detail page * Reset generatedApiKey when leaving page * Simplify stuff * Regenerate key when clicking on button * Simplify * Fix test * Refetch apiKeys when delete or create one * Add test for utils * Create utils function * Enable null expiration dates * Update formatExpiration * Fix display * Fix noteCard * Fix errors * Fix reset * Fix display * Fix renaming * Fix tests * Fix ci * Fix mocked data * Fix test * Update coverage requiremeents * Rename folder * Code review returns * Symplify sht code
This commit is contained in:
@ -9,7 +9,7 @@ import {
|
||||
GenericFieldContextType,
|
||||
} from '@/ui/data/field/contexts/FieldContext';
|
||||
import { IconComment } from '@/ui/display/icon';
|
||||
import { Activity, ActivityTarget } from '~/generated/graphql';
|
||||
import { Activity, ActivityTarget, Comment } from '~/generated/graphql';
|
||||
|
||||
const StyledCard = styled.div`
|
||||
align-items: flex-start;
|
||||
@ -76,9 +76,10 @@ export const NoteCard = ({
|
||||
}: {
|
||||
note: Pick<
|
||||
Activity,
|
||||
'id' | 'title' | 'body' | 'type' | 'completedAt' | 'dueAt' | 'comments'
|
||||
'id' | 'title' | 'body' | 'type' | 'completedAt' | 'dueAt'
|
||||
> & {
|
||||
activityTargets?: Array<Pick<ActivityTarget, 'id'>> | null;
|
||||
comments?: Array<Pick<Comment, 'id'>> | null;
|
||||
};
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
|
||||
Reference in New Issue
Block a user